diff options
author | Matt Caswell <matt@openssl.org> | 2020-04-06 16:05:24 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-04-09 12:24:24 +0100 |
commit | 76e23fc50b2dcf9b4d33824102ce5ae03f8faea3 (patch) | |
tree | b62d1f7553025c0d7cd44932b99e2d0060bd5999 /crypto/dsa | |
parent | 8519b244bc6c38f265bf9bad80c52bd7c0ff469f (diff) |
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/dsa')
-rw-r--r-- | crypto/dsa/dsa_ameth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/dsa/dsa_ameth.c b/crypto/dsa/dsa_ameth.c index cc72189cdb..d63c142fdd 100644 --- a/crypto/dsa/dsa_ameth.c +++ b/crypto/dsa/dsa_ameth.c @@ -520,7 +520,8 @@ static size_t dsa_pkey_dirty_cnt(const EVP_PKEY *pkey) } static int dsa_pkey_export_to(const EVP_PKEY *from, void *to_keydata, - EVP_KEYMGMT *to_keymgmt) + EVP_KEYMGMT *to_keymgmt, OPENSSL_CTX *libctx, + const char *propq) { DSA *dsa = from->pkey.dsa; OSSL_PARAM_BLD *tmpl; |