Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29338)
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;
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;