diff options
author | Richard Levitte <levitte@openssl.org> | 2019-09-23 11:16:21 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-10-17 09:16:45 +0200 |
commit | 506cb0f6322b24c980273ff5cd8f2c973a12b42f (patch) | |
tree | 773bbde5c66b9bc899c1e4d986e1a39ee3bb2f72 /crypto/evp/kdf_lib.c | |
parent | f651c727f85813085355bb207cf913288108ed79 (diff) | |
download | openssl-506cb0f6322b24c980273ff5cd8f2c973a12b42f.zip openssl-506cb0f6322b24c980273ff5cd8f2c973a12b42f.tar.gz openssl-506cb0f6322b24c980273ff5cd8f2c973a12b42f.tar.bz2 |
EVP: add functions that return the name number
The returned number can be used for comparison purposes.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/9979)
Diffstat (limited to 'crypto/evp/kdf_lib.c')
-rw-r--r-- | crypto/evp/kdf_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/evp/kdf_lib.c b/crypto/evp/kdf_lib.c index 90c43e9..5ddf856 100644 --- a/crypto/evp/kdf_lib.c +++ b/crypto/evp/kdf_lib.c @@ -83,6 +83,11 @@ EVP_KDF_CTX *EVP_KDF_CTX_dup(const EVP_KDF_CTX *src) return dst; } +int EVP_KDF_number(const EVP_KDF *kdf) +{ + return kdf->name_id; +} + int EVP_KDF_is_a(const EVP_KDF *kdf, const char *name) { return evp_is_a(kdf->prov, kdf->name_id, name); |