pal_ssl: include missing code for non-portable OpenSSL 3.0 build. (#81596)
authorTom Deseyn <tom.deseyn@gmail.com>
Fri, 3 Feb 2023 19:11:22 +0000 (20:11 +0100)
committerGitHub <noreply@github.com>
Fri, 3 Feb 2023 19:11:22 +0000 (11:11 -0800)
src/native/libs/System.Security.Cryptography.Native/pal_ssl.c

index e21acff..fbdf87b 100644 (file)
@@ -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);