summaryrefslogtreecommitdiffstats
path: root/net/nginx/patches/nginx/300-fix-deprecated-openssl-3_0.patch
blob: 3a8df51cb085026cd6ff0ca1b16213419324aa04 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/event/quic/ngx_event_quic_protection.c
+++ b/src/event/quic/ngx_event_quic_protection.c
@@ -520,7 +520,7 @@ ngx_quic_crypto_common(ngx_quic_secret_t
         }
     }
 
-    if (EVP_CIPHER_mode(EVP_CIPHER_CTX_cipher(ctx)) == EVP_CIPH_CCM_MODE
+    if (EVP_CIPHER_mode(EVP_CIPHER_CTX_get0_cipher(ctx)) == EVP_CIPH_CCM_MODE
         && EVP_CipherUpdate(ctx, NULL, &len, NULL, in->len) != 1)
     {
         ngx_ssl_error(NGX_LOG_INFO, log, 0, "EVP_CipherUpdate() failed");