From: Andrew Dinh Date: Thu, 4 Sep 2025 15:09:09 +0000 (+0700) Subject: Address SSLv3 removal nits X-Git-Url: https://git.feebdaed.xyz/?a=commitdiff_plain;h=21fc75e49fa0864f47a9898094206107574e6178;p=0xmirror%2Fopenssl.git Address SSLv3 removal nits Reviewed-by: Matt Caswell Reviewed-by: Neil Horman Reviewed-by: Saša Nedvědický Reviewed-by: Saša Nedvědický Reviewed-by: Viktor Dukhovni (Merged from https://github.com/openssl/openssl/pull/29338) --- diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c index a6723e1b66..a9b229fca3 100644 --- a/ssl/statem/statem_clnt.c +++ b/ssl/statem/statem_clnt.c @@ -55,8 +55,8 @@ static ossl_inline int received_server_cert(SSL_CONNECTION *sc) static ossl_inline int cert_req_allowed(SSL_CONNECTION *s) { /* TLS does not like anon-DH with client cert */ - if ((s->s3.tmp.new_cipher->algorithm_auth & SSL_aNULL) - || (s->s3.tmp.new_cipher->algorithm_auth & (SSL_aSRP | SSL_aPSK))) + if ((s->s3.tmp.new_cipher->algorithm_auth & SSL_aNULL) != 0 + || (s->s3.tmp.new_cipher->algorithm_auth & (SSL_aSRP | SSL_aPSK)) != 0) return 0; return 1; diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c index e511da8585..db99d49706 100644 --- a/ssl/statem/statem_srvr.c +++ b/ssl/statem/statem_srvr.c @@ -2665,7 +2665,7 @@ CON_FUNC_RETURN tls_construct_server_hello(SSL_CONNECTION *s, WPACKET *pkt) CON_FUNC_RETURN tls_construct_server_done(SSL_CONNECTION *s, WPACKET *pkt) { - if (!s->s3.tmp.cert_request) { + if (s->s3.tmp.cert_request == 0) { if (!ssl3_digest_cached_records(s, 0)) { /* SSLfatal() already called */ return CON_FUNC_ERROR;