aboutsummaryrefslogtreecommitdiffstats
path: root/include/internal/recordmethod.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-11-14 14:19:53 +0000
committerMatt Caswell <matt@openssl.org>2023-01-24 17:16:29 +0000
commit3f9175c7a46b13a3528d9b5776030a78eb1f9454 (patch)
treed114752dce6626fe749c8bec4b8721424c701461 /include/internal/recordmethod.h
parentbea8d70498c9ad0e2cca3652c748d327be7b841e (diff)
downloadopenssl-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 'include/internal/recordmethod.h')
-rw-r--r--include/internal/recordmethod.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/internal/recordmethod.h b/include/internal/recordmethod.h
index d6d432413a..fda3549590 100644
--- a/include/internal/recordmethod.h
+++ b/include/internal/recordmethod.h
@@ -124,6 +124,8 @@ struct ossl_record_method_st {
int role, int direction,
int level,
uint16_t epoch,
+ unsigned char *secret,
+ size_t secretlen,
unsigned char *key,
size_t keylen,
unsigned char *iv,
@@ -135,6 +137,7 @@ struct ossl_record_method_st {
int mactype,
const EVP_MD *md,
COMP_METHOD *comp,
+ const EVP_MD *kdfdigest,
BIO *prev,
BIO *transport,
BIO *next,