summaryrefslogtreecommitdiffstats
path: root/ssl/tls13_enc.c
diff options
context:
space:
mode:
authorJoseph Birr-Pixton <jpixton@gmail.com>2017-03-19 16:40:14 +0000
committerMatt Caswell <matt@openssl.org>2017-03-19 20:59:59 +0000
commitb0c9fc9b48be849090e84b4605087ae477c69e72 (patch)
treeb12433740038f140f909160ccc93a304f9c4b22d /ssl/tls13_enc.c
parent43c564170c7300092fa1627b961480c708d6fc01 (diff)
TLS1.3: Correct intermediate secret derivation
This label for this derivation was incorrectly "derived" or "der" depending on the pointer size of the build(!). The correct string is "derived secret". (cherry picked from commit 936dcf272033c1bf59a5e859ec63e2557194f191) Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2989)
Diffstat (limited to 'ssl/tls13_enc.c')
-rw-r--r--ssl/tls13_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/tls13_enc.c b/ssl/tls13_enc.c
index 910336281d..3b783a74af 100644
--- a/ssl/tls13_enc.c
+++ b/ssl/tls13_enc.c
@@ -124,7 +124,7 @@ int tls13_generate_secret(SSL *s, const EVP_MD *md,
size_t mdlen, prevsecretlen;
int ret;
EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_HKDF, NULL);
- const char *derived_secret_label = "derived secret";
+ static const char derived_secret_label[] = "derived secret";
unsigned char preextractsec[EVP_MAX_MD_SIZE];
if (pctx == NULL)