Make EVP_{CIPHER,MD}_CTX_{cleanup,reset}() NULL-safe
authortb <tb@openbsd.org>
Tue, 30 Jan 2024 17:41:01 +0000 (17:41 +0000)
committertb <tb@openbsd.org>
Tue, 30 Jan 2024 17:41:01 +0000 (17:41 +0000)
commit9c8c8218235732be8f0d92ceee630381ff1e7bcf
treed7c755d71b5122ccfffe5e2bdb3ea8b8e459f861
parented3b913002ba9c09d713298bdad8f74e07d64650
Make EVP_{CIPHER,MD}_CTX_{cleanup,reset}() NULL-safe

We have a bunch of code that relies on this. Surely there is code out
there in the wider ecosystem that relies on these being NULL-safe by
now since upstream sprinkles NULL checks wherever they can.

ok beck joshua
lib/libcrypto/evp/evp_cipher.c
lib/libcrypto/evp/evp_digest.c