summaryrefslogtreecommitdiffstats
path: root/net/nginx/patches/nginx/300-fix-deprecated-openssl-3_0.patch
blob: 4294ed6879716251afa0d1a9c5c8c5c3282f2d12 (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
@@ -510,7 +510,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");