From ca1bbc1a20837f76a2b637072d63da2d03985fff Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 12 Mar 2020 14:50:37 +0000 Subject: [PATCH] Use correct libctx when fetching the TLS1 PRF in libssl Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/11357) --- ssl/t1_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 6ce5235882..1a0d5eba87 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -46,7 +46,7 @@ static int tls1_PRF(SSL *s, SSLerr(SSL_F_TLS1_PRF, ERR_R_INTERNAL_ERROR); return 0; } - kdf = EVP_KDF_fetch(NULL, OSSL_KDF_NAME_TLS1_PRF, NULL); + kdf = EVP_KDF_fetch(s->ctx->libctx, OSSL_KDF_NAME_TLS1_PRF, s->ctx->propq); if (kdf == NULL) goto err; kctx = EVP_KDF_CTX_new(kdf); -- 2.34.1