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 a11a75d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ssl/ssl_cipher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,12 @@ bool ssl_cipher_get_evp_aead(const EVP_AEAD **out_aead,
// never reach this case in normal connection flow, as |choose_cipher|
// uses |SSL_CIPHER_get_min_version| and |SSL_CIPHER_get_max_version| to
// 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) {
return false;
}

// Enforce that SHA-384 is only used with AES-256.
if (cipher->algorithm_enc != SSL_AES256) {
return false;
}

Expand Down

0 comments on commit a11a75d

Please sign in to comment.