Return SSL_AD_UNEXPECTED_MESSAGE alert when receiving any other change_cipher_spec value(RFC 8446)
Fixes: #25086 CLA: trivial Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/25257)
This commit is contained in:
parent
91432b9ea0
commit
c07a34e18b
@ -744,7 +744,7 @@ int tls_get_more_records(OSSL_RECORD_LAYER *rl)
|
||||
* CCS messages must be exactly 1 byte long, containing the value 0x01
|
||||
*/
|
||||
if (thisrr->length != 1 || thisrr->data[0] != 0x01) {
|
||||
RLAYERfatal(rl, SSL_AD_ILLEGAL_PARAMETER,
|
||||
RLAYERfatal(rl, SSL_AD_UNEXPECTED_MESSAGE,
|
||||
SSL_R_INVALID_CCS_MESSAGE);
|
||||
return OSSL_RECORD_RETURN_FATAL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user