Make the cleanup() method return an int again
authortb <tb@openbsd.org>
Wed, 1 Mar 2023 11:16:06 +0000 (11:16 +0000)
committertb <tb@openbsd.org>
Wed, 1 Mar 2023 11:16:06 +0000 (11:16 +0000)
commitd8fdcedaee4f4da0e33bb677901023306a662bb5
treea2ce01c9fbf84e25ee9aee0c9edfaa8f37fab724
parent48e299a745fb34c1a512036bd823bdd640fb7b16
Make the cleanup() method return an int again

This partially reverts jsing's OpenBSD commit b8185953, but without adding
back the error check that potentialy results in dumb leaks. No cleanup()
method in the wild returns anything but 1. Since that's the signature in
the EVP_CIPHER_meth_* API, we have no choice...

ok jsing
lib/libcrypto/evp/e_aes.c
lib/libcrypto/evp/e_chacha20poly1305.c
lib/libcrypto/evp/evp_enc.c
lib/libcrypto/evp/evp_local.h