From 46bb661de6331fd43c2a720f07cab8ad16cd2ec9 Mon Sep 17 00:00:00 2001 From: jiangtaoli2016 Date: Tue, 6 Oct 2020 15:00:27 -0700 Subject: [PATCH] Fix ssl init condition in ssl_transport_security --- src/core/tsi/ssl_transport_security.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/tsi/ssl_transport_security.cc b/src/core/tsi/ssl_transport_security.cc index 83cc98f381e..5550bb6143b 100644 --- a/src/core/tsi/ssl_transport_security.cc +++ b/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();