@ -2082,7 +2082,7 @@ tsi_result tsi_create_ssl_client_handshaker_factory_with_options(
# else
# else
ssl_context = SSL_CTX_new ( TLSv1_2_method ( ) ) ;
ssl_context = SSL_CTX_new ( TLSv1_2_method ( ) ) ;
# endif
# endif
# if OPENSSL_VERSION_NUMBER >= 0x10101000
# if OPENSSL_VERSION_NUMBER >= 0x10101000 && !defined(LIBRESSL_VERSION_NUMBER)
SSL_CTX_set_options ( ssl_context , SSL_OP_NO_RENEGOTIATION ) ;
SSL_CTX_set_options ( ssl_context , SSL_OP_NO_RENEGOTIATION ) ;
# endif
# endif
if ( ssl_context = = nullptr ) {
if ( ssl_context = = nullptr ) {
@ -2185,7 +2185,7 @@ tsi_result tsi_create_ssl_client_handshaker_factory_with_options(
nullptr ) ;
nullptr ) ;
}
}
# if OPENSSL_VERSION_NUMBER >= 0x10100000
# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
if ( options - > crl_provider ! = nullptr ) {
if ( options - > crl_provider ! = nullptr ) {
SSL_CTX_set_ex_data ( impl - > ssl_context , g_ssl_ctx_ex_crl_provider_index ,
SSL_CTX_set_ex_data ( impl - > ssl_context , g_ssl_ctx_ex_crl_provider_index ,
options - > crl_provider . get ( ) ) ;
options - > crl_provider . get ( ) ) ;
@ -2302,7 +2302,7 @@ tsi_result tsi_create_ssl_server_handshaker_factory_with_options(
# else
# else
impl - > ssl_contexts [ i ] = SSL_CTX_new ( TLSv1_2_method ( ) ) ;
impl - > ssl_contexts [ i ] = SSL_CTX_new ( TLSv1_2_method ( ) ) ;
# endif
# endif
# if OPENSSL_VERSION_NUMBER >= 0x10101000
# if OPENSSL_VERSION_NUMBER >= 0x10101000 && !defined(LIBRESSL_VERSION_NUMBER)
SSL_CTX_set_options ( impl - > ssl_contexts [ i ] , SSL_OP_NO_RENEGOTIATION ) ;
SSL_CTX_set_options ( impl - > ssl_contexts [ i ] , SSL_OP_NO_RENEGOTIATION ) ;
# endif
# endif
if ( impl - > ssl_contexts [ i ] = = nullptr ) {
if ( impl - > ssl_contexts [ i ] = = nullptr ) {
@ -2389,7 +2389,7 @@ tsi_result tsi_create_ssl_server_handshaker_factory_with_options(
break ;
break ;
}
}
# if OPENSSL_VERSION_NUMBER >= 0x10100000
# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
if ( options - > crl_provider ! = nullptr ) {
if ( options - > crl_provider ! = nullptr ) {
SSL_CTX_set_ex_data ( impl - > ssl_contexts [ i ] ,
SSL_CTX_set_ex_data ( impl - > ssl_contexts [ i ] ,
g_ssl_ctx_ex_crl_provider_index ,
g_ssl_ctx_ex_crl_provider_index ,