diff options
author | Richard Levitte <levitte@openssl.org> | 2019-07-10 22:59:07 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-07-23 06:34:09 +0200 |
commit | 1d2622d4f357a7994cf6fdc3fdba27317a6a6597 (patch) | |
tree | 773bfa44138d19ec6ef9b0c0a0b15e69949a6e25 /crypto | |
parent | c750bc08516f1273751ba03fa533e3eb2418b92d (diff) |
Add EVP_MD_provider() and EVP_CIPHER_provider()
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9356)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/evp_lib.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/evp/evp_lib.c b/crypto/evp/evp_lib.c index 36a6aee690..0825c102b5 100644 --- a/crypto/evp/evp_lib.c +++ b/crypto/evp/evp_lib.c @@ -426,6 +426,11 @@ const char *EVP_CIPHER_name(const EVP_CIPHER *cipher) #endif } +const OSSL_PROVIDER *EVP_CIPHER_provider(const EVP_CIPHER *cipher) +{ + return cipher->prov; +} + int EVP_CIPHER_mode(const EVP_CIPHER *cipher) { int ok, v = EVP_CIPHER_flags(cipher) & EVP_CIPH_MODE; @@ -448,6 +453,11 @@ const char *EVP_MD_name(const EVP_MD *md) #endif } +const OSSL_PROVIDER *EVP_MD_provider(const EVP_MD *md) +{ + return md->prov; +} + int EVP_MD_block_size(const EVP_MD *md) { if (md == NULL) { |