Fix ssl init condition in ssl_transport_security

pull/24345/head
jiangtaoli2016 4 years ago
parent 99c32a21df
commit 46bb661de6
  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