summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-04-06 16:05:24 +0100
committerMatt Caswell <matt@openssl.org>2020-04-09 12:24:24 +0100
commit76e23fc50b2dcf9b4d33824102ce5ae03f8faea3 (patch)
treeb62d1f7553025c0d7cd44932b99e2d0060bd5999 /include
parent8519b244bc6c38f265bf9bad80c52bd7c0ff469f (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 'include')
-rw-r--r--include/crypto/asn1.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/crypto/asn1.h b/include/crypto/asn1.h
index 20732c2251..84e6e7f544 100644
--- a/include/crypto/asn1.h
+++ b/include/crypto/asn1.h
@@ -73,7 +73,8 @@ struct evp_pkey_asn1_method_st {
/* Exports and imports to / from providers */
size_t (*dirty_cnt) (const EVP_PKEY *pk);
int (*export_to) (const EVP_PKEY *pk, void *to_keydata,
- EVP_KEYMGMT *to_keymgmt);
+ EVP_KEYMGMT *to_keymgmt, OPENSSL_CTX *libctx,
+ const char *propq);
OSSL_CALLBACK *import_from;
} /* EVP_PKEY_ASN1_METHOD */ ;