diff options
author | Richard Levitte <levitte@openssl.org> | 2021-07-13 10:40:45 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-07-26 12:11:54 +0200 |
commit | ad0a2c011020268a242737820bc50549e76cd6b8 (patch) | |
tree | c5b1a6ab6cef59978f3591c9a63757af13258a7e /include | |
parent | Fix potential problems with EVP_PKEY_CTX_new() with engine set (diff) | |
download | openssl-ad0a2c011020268a242737820bc50549e76cd6b8.tar.xz openssl-ad0a2c011020268a242737820bc50549e76cd6b8.zip |
EVP: Add EVP_PKEY_get0_provider() and EVP_PKEY_CTX_get0_provider()
Fixes #16058
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16063)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/evp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index f76c4a26d1..1c8ce48773 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -1380,6 +1380,7 @@ int EVP_PKEY_up_ref(EVP_PKEY *pkey); EVP_PKEY *EVP_PKEY_dup(EVP_PKEY *pkey); void EVP_PKEY_free(EVP_PKEY *pkey); const char *EVP_PKEY_get0_description(const EVP_PKEY *pkey); +const OSSL_PROVIDER *EVP_PKEY_get0_provider(const EVP_PKEY *key); EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp, long length); @@ -2160,7 +2161,8 @@ int EVP_PKEY_get_group_name(const EVP_PKEY *pkey, char *name, size_t name_sz, size_t *gname_len); OSSL_LIB_CTX *EVP_PKEY_CTX_get0_libctx(EVP_PKEY_CTX *ctx); -const char *EVP_PKEY_CTX_get0_propq(EVP_PKEY_CTX *ctx); +const char *EVP_PKEY_CTX_get0_propq(const EVP_PKEY_CTX *ctx); +const OSSL_PROVIDER *EVP_PKEY_CTX_get0_provider(const EVP_PKEY_CTX *ctx); # ifdef __cplusplus } |