Make sure we use the libctx when creating an EVP_PKEY_CTX in libssl
authorMatt Caswell <matt@openssl.org>
Thu, 12 Mar 2020 14:49:19 +0000 (14:49 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 1 Apr 2020 16:29:12 +0000 (17:29 +0100)
commitd882e4ce56eff950ae27cecaafe164751779c12a
treec3f1e87032329da0f540dc64fb7deea0d14fe761
parentfc69f32cd6852e60627969138be80cc665a573dd
Make sure we use the libctx when creating an EVP_PKEY_CTX in libssl

We should use EVP_PKEY_CTX_new_from_pkey() to ensure we use the correct
libctx.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/11401)
ssl/s3_lib.c