From: Tom Deseyn Date: Fri, 3 Feb 2023 19:11:22 +0000 (+0100) Subject: pal_ssl: include missing code for non-portable OpenSSL 3.0 build. (#81596) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~4246 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=043f3a7a8a6420e868a5bc8c45d6b889b4e02c7e;p=platform%2Fupstream%2Fdotnet%2Fruntime.git pal_ssl: include missing code for non-portable OpenSSL 3.0 build. (#81596) --- diff --git a/src/native/libs/System.Security.Cryptography.Native/pal_ssl.c b/src/native/libs/System.Security.Cryptography.Native/pal_ssl.c index e21acff..fbdf87b 100644 --- a/src/native/libs/System.Security.Cryptography.Native/pal_ssl.c +++ b/src/native/libs/System.Security.Cryptography.Native/pal_ssl.c @@ -487,7 +487,7 @@ int32_t CryptoNative_SslRenegotiate(SSL* ssl, int32_t* error) { ERR_clear_error(); -#ifdef NEED_OPENSSL_1_1 +#if defined NEED_OPENSSL_1_1 || defined NEED_OPENSSL_3_0 // TLS1.3 uses different API for renegotiation/delayed client cert request #ifndef TLS1_3_VERSION #define TLS1_3_VERSION 0x0304 @@ -1007,7 +1007,7 @@ void CryptoNative_SslSetClientCertCallback(SSL* ssl, int set) void CryptoNative_SslSetPostHandshakeAuth(SSL* ssl, int32_t val) { -#ifdef NEED_OPENSSL_1_1 +#if defined NEED_OPENSSL_1_1 || defined NEED_OPENSSL_3_0 if (API_EXISTS(SSL_set_post_handshake_auth)) { SSL_set_post_handshake_auth(ssl, val);