Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed Mar 27, 2024
1 parent 1535156 commit 88fd8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssl/ssl_cipher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ bool ssl_cipher_get_evp_aead(const EVP_AEAD **out_aead,
// filter cipher selection appropriately.
//
// Additionally enforce that SHA-384 is only used with AES-256.
if (!is_tls12 || cipher->algorithm_enc != SSL_AES256) {
if(version != TLS1_2_VERSION || cipher->algorithm_enc != SSL_AES256) {
return false;
}

Expand Down

0 comments on commit 88fd8bc

Please sign in to comment.