diff options
author | Matt Caswell <matt@openssl.org> | 2022-11-14 14:19:53 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-01-24 17:16:29 +0000 |
commit | 3f9175c7a46b13a3528d9b5776030a78eb1f9454 (patch) | |
tree | d114752dce6626fe749c8bec4b8721424c701461 /ssl/t1_enc.c | |
parent | bea8d70498c9ad0e2cca3652c748d327be7b841e (diff) | |
download | openssl-3f9175c7a46b13a3528d9b5776030a78eb1f9454.tar.gz |
Extend the new_record_layer function
Add the ability to pass the main secret and length, as well as the
digest used for the KDF.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19748)
Diffstat (limited to 'ssl/t1_enc.c')
-rw-r--r-- | ssl/t1_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 0265210524..712a784a0d 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -268,9 +268,9 @@ int tls1_change_cipher_state(SSL_CONNECTION *s, int which) if (!ssl_set_new_record_layer(s, s->version, direction, OSSL_RECORD_PROTECTION_LEVEL_APPLICATION, - key, cl, iv, (size_t)k, mac_secret, + NULL, 0, key, cl, iv, (size_t)k, mac_secret, mac_secret_size, c, taglen, mac_type, - m, comp)) { + m, comp, NULL)) { /* SSLfatal already called */ goto err; } |