From 33e03cc9fc3abef316a891f5c835801095ef551a Mon Sep 17 00:00:00 2001 From: Rajeev Ranjan Date: Tue, 5 Dec 2023 00:46:20 +0100 Subject: [PATCH] tls13_enc: using SN instead of nid --- ssl/tls13_enc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ssl/tls13_enc.c b/ssl/tls13_enc.c index 75d3cc156177a..b564a570fa5c9 100644 --- a/ssl/tls13_enc.c +++ b/ssl/tls13_enc.c @@ -389,9 +389,11 @@ static int derive_secret_key_and_iv(SSL_CONNECTION *s, const EVP_MD *md, if (mode == EVP_CIPH_GCM_MODE) { *taglen = EVP_GCM_TLS_TAG_LEN; - } else if (EVP_CIPHER_get_nid(ciph) == NID_enull_hmac_sha256) { + } else if (strcmp(EVP_CIPHER_get0_name(ciph), SN_enull_hmac_sha256) + == 0) { *taglen = EVP_HMACSHA256_TLS_TAG_LEN; - } else if (EVP_CIPHER_get_nid(ciph) == NID_enull_hmac_sha384) { + } else if (strcmp(EVP_CIPHER_get0_name(ciph), SN_enull_hmac_sha384) + == 0) { *taglen = EVP_HMACSHA384_TLS_TAG_LEN; } else { /* CHACHA20P-POLY1305 */