From: Matt Caswell Date: Thu, 12 Mar 2020 14:50:37 +0000 (+0000) Subject: Use correct libctx when fetching the TLS1 PRF in libssl X-Git-Tag: openssl-3.0.0-alpha1~223 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ca1bbc1a20837f76a2b637072d63da2d03985fff;p=oweals%2Fopenssl.git 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) --- 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);