diff options
author | Matt Caswell <matt@openssl.org> | 2020-04-24 15:43:20 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-05-04 09:30:55 +0100 |
commit | f3336f40508dfd4821f0048b149ffb45f8f08875 (patch) | |
tree | 52a1f40fa1a1b51d577045e69445a26f8311d88e /include/crypto | |
parent | 969024b4580172b1cd836550e227d64515c628bc (diff) |
Add the library ctx into an ECX_KEY
At various points we need to be able to retrieve the current library
context so we store it in the ECX_KEY structure.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11635)
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/ecx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/crypto/ecx.h b/include/crypto/ecx.h index ef3bf0f3a8..54ce5f2b7c 100644 --- a/include/crypto/ecx.h +++ b/include/crypto/ecx.h @@ -61,6 +61,7 @@ typedef enum { : EVP_PKEY_ED448))) struct ecx_key_st { + OPENSSL_CTX *libctx; unsigned int haspubkey:1; unsigned char pubkey[MAX_KEYLEN]; unsigned char *privkey; @@ -73,7 +74,7 @@ struct ecx_key_st { typedef struct ecx_key_st ECX_KEY; size_t ecx_key_length(ECX_KEY_TYPE type); -ECX_KEY *ecx_key_new(ECX_KEY_TYPE type, int haspubkey); +ECX_KEY *ecx_key_new(OPENSSL_CTX *libctx, ECX_KEY_TYPE type, int haspubkey); unsigned char *ecx_key_allocate_privkey(ECX_KEY *key); void ecx_key_free(ECX_KEY *key); int ecx_key_up_ref(ECX_KEY *key); |