mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Return SSL_AD_DECRYPT_ERROR alert on PSK binder validation failure (RFC 8446)
CLA: trivial Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> (Merged from https://github.com/openssl/openssl/pull/25176)
This commit is contained in:
parent
8945f406a7
commit
02b8b7b836
@ -1697,7 +1697,7 @@ int tls_psk_do_binder(SSL_CONNECTION *s, const EVP_MD *md,
|
||||
/* HMAC keys can't do EVP_DigestVerify* - use CRYPTO_memcmp instead */
|
||||
ret = (CRYPTO_memcmp(binderin, binderout, hashsize) == 0);
|
||||
if (!ret)
|
||||
SSLfatal(s, SSL_AD_ILLEGAL_PARAMETER, SSL_R_BINDER_DOES_NOT_VERIFY);
|
||||
SSLfatal(s, SSL_AD_DECRYPT_ERROR, SSL_R_BINDER_DOES_NOT_VERIFY);
|
||||
}
|
||||
|
||||
err:
|
||||
|
Loading…
Reference in New Issue
Block a user