]> git.ipfire.org Git - thirdparty/openssl.git/commit
New function EVP_CIPHER_free()
authorRichard Levitte <levitte@openssl.org>
Tue, 3 Sep 2019 16:11:49 +0000 (18:11 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 4 Sep 2019 08:38:13 +0000 (10:38 +0200)
commit550f974a09942ace37cf3cf14021ea5e51e6dd11
tree6a5fc648e9b04b21f844e4998540c4b8c286394e
parent3fd7026276475d72a3b5bbbe42cd1f5ff6b0e736
New function EVP_CIPHER_free()

This function re-implements EVP_CIPHER_meth_free(), but has a name that
isn't encumbered by legacy EVP_CIPHER construction functionality.

We also refactor most of EVP_CIPHER_meth_new() into an internal
evp_cipher_new() that's used when creating fetched methods.

EVP_CIPHER_meth_new() and EVP_CIPHER_meth_free() are rewritten in terms of
evp_cipher_new() and EVP_CIPHER_free().  This means that at any time, we can
deprecate all the EVP_CIPHER_meth_ functions with no harmful consequence.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9758)
12 files changed:
apps/list.c
crypto/evp/cmeth_lib.c
crypto/evp/evp_enc.c
crypto/evp/evp_locl.h
crypto/rand/drbg_ctr.c
doc/man3/EVP_CIPHER_meth_new.pod
doc/man3/EVP_EncryptInit.pod
include/openssl/evp.h
providers/common/macs/cmac_prov.c
providers/common/macs/gmac_prov.c
test/evp_extra_test.c
util/libcrypto.num