diff options
author | Richard Levitte <levitte@openssl.org> | 2019-07-10 22:22:16 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-07-23 06:34:09 +0200 |
commit | 6b9e37246d5fd8e701b825c71fa1a018916af33c (patch) | |
tree | fc451bc5eeab4d6b1eb569c31fd912e7f20d083a /crypto/evp/cmeth_lib.c | |
parent | provider-keymgmt(7): Document the KEYMGMT interface (diff) | |
download | openssl-6b9e37246d5fd8e701b825c71fa1a018916af33c.tar.xz openssl-6b9e37246d5fd8e701b825c71fa1a018916af33c.zip |
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.c | 1 |
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); } |