Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/openssl/src/openssl_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ class openssl_native_context : public native_context_base

if (!cd.ciphersuites.empty())
{
#ifndef OPENSSL_IS_BORINGSSL
Copy link
Member

Choose a reason for hiding this comment

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

Corosio does not have build configurations (no macros). This would have to be in a separate translation unit.

Copy link
Author

Choose a reason for hiding this comment

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

This works when corosio does find_package(OpenSSL) and gets BoringSSL instead.
The macro gets there through #include <openssl/ssl.h>
I tested with my package manager which does this, and it works.

Copy link
Member

Choose a reason for hiding this comment

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

I get it, of course it works. What I'm saying is that we don't use conditional compilation to change the nature of the binary on a specific platform. Every Capy library has to be the same. There's no "#if SINGLE_THREADED_MUTEX" or that stuff.

SSL_CTX_set_security_level(ctx_, 0);
#endif
SSL_CTX_set_cipher_list(ctx_, cd.ciphersuites.c_str());
}
}
Expand Down