Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TLS::Context Visibility #4335

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

atreiber94
Copy link
Collaborator

TLS::Context missed a BOTAN_PUBLIC_API flag which resulted in a linker error with a shared build in examples/tls_stream_coroutine_client.cpp.

This PR also builds the examples with shared to catch such issues.

@coveralls
Copy link

Coverage Status

coverage: 91.281% (+0.006%) from 91.275%
when pulling f0ecad0 on Rohde-Schwarz:fix/context_visibility
into 33c953a on randombit:master.

Copy link
Collaborator

@reneme reneme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record: This was introduced in #3799 which introduced a convenience constructor (TLS::Context::Context(Server_Information)), which is the first method in TLS::Context that is not implemented in the header itself.

It didn't get caught because this "sane defaults" constructor is currently used only in the examples and not the unit tests.

@reneme reneme added this to the Botan 3.6.0 milestone Sep 6, 2024
@atreiber94 atreiber94 merged commit 0639e82 into randombit:master Sep 9, 2024
40 checks passed
@atreiber94 atreiber94 deleted the fix/context_visibility branch September 9, 2024 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants