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

OpenSSL 1.1.0 compatibility #2000

Merged
merged 1 commit into from
Oct 18, 2018
Merged

OpenSSL 1.1.0 compatibility #2000

merged 1 commit into from
Oct 18, 2018

Conversation

nouzun
Copy link
Contributor

@nouzun nouzun commented Sep 13, 2018

Changes to be able to build librdkafka with OpenSSL 1.1.0

@@ -503,6 +507,13 @@ void rd_kafka_transport_ssl_init (void) {
SSL_load_error_strings();
SSL_library_init();
OpenSSL_add_all_algorithms();
#else
#ifdef HAVE_OPENSSL_CRYPTO_THREADID_SET_CALLBACK
CRYPTO_THREADID_set_callback(rd_kafka_transport_ssl_threadid_cb);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't find if this is actually needed on OpenSSL >=1.1.0, but other projects seem to not use it on that version, so maybe it should be moved to the < 1.1.0 block?

pycurl/pycurl#491

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True. I moved it to the < 1.1.0 block.

#ifdef HAVE_OPENSSL_CRYPTO_THREADID_SET_CALLBACK
CRYPTO_THREADID_set_callback(rd_kafka_transport_ssl_threadid_cb);
#endif
OPENSSL_init_ssl(0, NULL);
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants