summaryrefslogtreecommitdiffstats
path: root/test/tls13secretstest.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-07-05 11:23:16 +0100
committerMatt Caswell <matt@openssl.org>2017-07-07 15:02:09 +0100
commita19ae67d8da53a4a5878e34d1070d3aeb1f5963c (patch)
tree0900e79b3f98a6a4568f4c101098bb1d717a72cf /test/tls13secretstest.c
parentde2f409ef9de775df6db2c7de69b7bb0df21e380 (diff)
Update tls13_hkdf_expand() to take the length of the data
In most scenarios the length of the input data is the hashsize, or 0 if the data is NULL. However with the new ticket_nonce changes the length can be different. Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/3852)
Diffstat (limited to 'test/tls13secretstest.c')
-rw-r--r--test/tls13secretstest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tls13secretstest.c b/test/tls13secretstest.c
index daccd7c360..e052d0bd03 100644
--- a/test/tls13secretstest.c
+++ b/test/tls13secretstest.c
@@ -226,8 +226,8 @@ static int test_secret(SSL *s, unsigned char *prk,
return 0;
}
- if (!tls13_hkdf_expand(s, md, prk, label, labellen, hash, gensecret,
- hashsize)) {
+ if (!tls13_hkdf_expand(s, md, prk, label, labellen, hash, hashsize,
+ gensecret, hashsize)) {
TEST_error("Secret generation failed");
return 0;
}