From db860ea3dcf56a1993c66da22bd44460d7ac4914 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 4 Dec 2018 08:37:04 +0000 Subject: [PATCH] Fix some SSL_export_keying_material() issues Fix some issues in tls13_hkdf_expand() which impact the above function for TLSv1.3. In particular test that we can use the maximum label length in TLSv1.3. Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/7755) (cherry picked from commit 0fb2815b873304d145ed00283454fc9f3bd35e6b) --- doc/man3/SSL_export_keying_material.pod | 3 +- ssl/ssl_locl.h | 2 +- ssl/statem/extensions.c | 2 +- ssl/statem/statem_clnt.c | 2 +- ssl/statem/statem_srvr.c | 2 +- ssl/tls13_enc.c | 73 +++++++++++++++++-------- test/sslapitest.c | 48 ++++++++++++---- test/tls13secretstest.c | 2 +- 8 files changed, 92 insertions(+), 42 deletions(-) diff --git a/doc/man3/SSL_export_keying_material.pod b/doc/man3/SSL_export_keying_material.pod index abebf911fc..4c81a60ffb 100644 --- a/doc/man3/SSL_export_keying_material.pod +++ b/doc/man3/SSL_export_keying_material.pod @@ -59,7 +59,8 @@ B