Openssl 1.1.1 instead of just 1.1

pull/35444/head
Gregory Cooke 1 year ago
parent 598adc1dee
commit 715533c90c
  1. 8
      src/core/tsi/ssl_transport_security.cc

@ -2072,9 +2072,11 @@ tsi_result tsi_create_ssl_client_handshaker_factory_with_options(
#if OPENSSL_VERSION_NUMBER >= 0x10100000
ssl_context = SSL_CTX_new(TLS_method());
SSL_CTX_set_options(ssl_context, SSL_OP_NO_RENEGOTIATION);
#else
ssl_context = SSL_CTX_new(TLSv1_2_method());
#endif
#if OPENSSL_VERSION_NUMBER >= 0x10101000
SSL_CTX_set_options(ssl_context, SSL_OP_NO_RENEGOTIATION);
#endif
if (ssl_context == nullptr) {
grpc_core::LogSslErrorStack();
@ -2288,9 +2290,11 @@ tsi_result tsi_create_ssl_server_handshaker_factory_with_options(
do {
#if OPENSSL_VERSION_NUMBER >= 0x10100000
impl->ssl_contexts[i] = SSL_CTX_new(TLS_method());
SSL_CTX_set_options(impl->ssl_contexts[i], SSL_OP_NO_RENEGOTIATION);
#else
impl->ssl_contexts[i] = SSL_CTX_new(TLSv1_2_method());
#endif
#if OPENSSL_VERSION_NUMBER >= 0x10101000
SSL_CTX_set_options(impl->ssl_contexts[i], SSL_OP_NO_RENEGOTIATION);
#endif
if (impl->ssl_contexts[i] == nullptr) {
grpc_core::LogSslErrorStack();

Loading…
Cancel
Save