Merge pull request #24345 from jiangtaoli2016/fix_ssl_init

Fix ssl init condition in ssl_transport_security
pull/24353/head
Jiangtao Li 4 years ago committed by GitHub
commit 68a6d1bfb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/tsi/ssl_transport_security.cc

@ -162,8 +162,8 @@ static unsigned long openssl_thread_id_cb(void) {
#endif
static void init_openssl(void) {
#if OPENSSL_API_COMPAT >= 0x10100000L
OPENSSL_init_ssl(0, NULL);
#if OPENSSL_VERSION_NUMBER >= 0x10100000
OPENSSL_init_ssl(0, nullptr);
#else
SSL_library_init();
SSL_load_error_strings();

Loading…
Cancel
Save