summaryrefslogtreecommitdiffstats
path: root/crypto/evp/cmeth_lib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-07-10 22:22:16 +0200
committerRichard Levitte <levitte@openssl.org>2019-07-23 06:34:09 +0200
commit6b9e37246d5fd8e701b825c71fa1a018916af33c (patch)
treefc451bc5eeab4d6b1eb569c31fd912e7f20d083a /crypto/evp/cmeth_lib.c
parentda2addc515d547b0d724a4fc730c4345ed713221 (diff)
Add a mechnism to save the name of fetched methods
This will be useful for information display, as well as for code that want to check the name of an algorithm. This can eventually replace all NID checks. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9356)
Diffstat (limited to 'crypto/evp/cmeth_lib.c')
-rw-r--r--crypto/evp/cmeth_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/cmeth_lib.c b/crypto/evp/cmeth_lib.c
index 40aca34e07..51c9b6ece2 100644
--- a/crypto/evp/cmeth_lib.c
+++ b/crypto/evp/cmeth_lib.c
@@ -55,6 +55,7 @@ void EVP_CIPHER_meth_free(EVP_CIPHER *cipher)
if (i > 0)
return;
ossl_provider_free(cipher->prov);
+ OPENSSL_free(cipher->name);
CRYPTO_THREAD_lock_free(cipher->lock);
OPENSSL_free(cipher);
}