summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-04-06 17:05:24 +0200
committerMatt Caswell <matt@openssl.org>2020-04-09 13:24:24 +0200
commit76e23fc50b2dcf9b4d33824102ce5ae03f8faea3 (patch)
treeb62d1f7553025c0d7cd44932b99e2d0060bd5999 /crypto/evp
parentOpenSSL::OID: Don't use List::Util (diff)
downloadopenssl-76e23fc50b2dcf9b4d33824102ce5ae03f8faea3.tar.xz
openssl-76e23fc50b2dcf9b4d33824102ce5ae03f8faea3.zip
Enable export_to functions to have access to the libctx
The EC export_to function calls EC_POINT_point2buf that can later generate a random number in some circumstances. Therefore we pass in a BN_CTX associated with the library context. This means we have to change the export_to function signature to accept the library context. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11493)
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/p_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index 8e7af17c31..85b5cc8127 100644
--- a/crypto/evp/p_lib.c
+++ b/crypto/evp/p_lib.c
@@ -1442,7 +1442,7 @@ void *evp_pkey_export_to_provider(EVP_PKEY *pk, OPENSSL_CTX *libctx,
if ((keydata = evp_keymgmt_newdata(tmp_keymgmt)) == NULL)
goto end;
- if (!pk->ameth->export_to(pk, keydata, tmp_keymgmt)) {
+ if (!pk->ameth->export_to(pk, keydata, tmp_keymgmt, libctx, propquery)) {
evp_keymgmt_freedata(tmp_keymgmt, keydata);
keydata = NULL;
goto end;