diff options
Diffstat (limited to 'crypto/evp/evp_lib.c')
-rw-r--r-- | crypto/evp/evp_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/evp_lib.c b/crypto/evp/evp_lib.c index eeed7359a4..000d6e9623 100644 --- a/crypto/evp/evp_lib.c +++ b/crypto/evp/evp_lib.c @@ -451,7 +451,7 @@ int EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx) const char *EVP_CIPHER_name(const EVP_CIPHER *cipher) { if (cipher->prov != NULL) - return cipher->name; + return evp_first_name(cipher->prov, cipher->name_id); #ifndef FIPS_MODE return OBJ_nid2sn(EVP_CIPHER_nid(cipher)); #else @@ -479,7 +479,7 @@ int EVP_CIPHER_mode(const EVP_CIPHER *cipher) const char *EVP_MD_name(const EVP_MD *md) { if (md->prov != NULL) - return md->name; + return evp_first_name(md->prov, md->name_id); #ifndef FIPS_MODE return OBJ_nid2sn(EVP_MD_nid(md)); #else |