summaryrefslogtreecommitdiffstats
path: root/ssl/s3_enc.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-05-10 18:50:00 +0100
committerMatt Caswell <matt@openssl.org>2022-08-18 16:38:12 +0100
commitcc110a0aaebd627a9e61e2c8d68b02e3e0a4e76b (patch)
tree3ab1dc49a5c3ebea035c8ee66f45b358b36fa88e /ssl/s3_enc.c
parent50023e9b7e2253c27e1a731c8bace64224aae0b8 (diff)
Implement KTLS in the new read record layer code
Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18132)
Diffstat (limited to 'ssl/s3_enc.c')
-rw-r--r--ssl/s3_enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_enc.c b/ssl/s3_enc.c
index bd66f300ef..fc9002b8e5 100644
--- a/ssl/s3_enc.c
+++ b/ssl/s3_enc.c
@@ -146,12 +146,12 @@ int ssl3_change_cipher_state(SSL_CONNECTION *s, int which)
}
if (which & SSL3_CC_READ) {
- if (!ssl_set_new_record_layer(s, NULL, SSL3_VERSION,
+ if (!ssl_set_new_record_layer(s, SSL3_VERSION,
OSSL_RECORD_DIRECTION_READ,
OSSL_RECORD_PROTECTION_LEVEL_APPLICATION,
key, key_len, iv, iv_len, mac_secret,
md_len, ciph, 0, NID_undef, md, comp)) {
- /* SSLfatal already called */
+ SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_RECORD_LAYER);
goto err;
}