Restore EVP_get_cipherbyname(NULL)/EVP_get_digestbyname(NULL) handling
authorjca <jca@openbsd.org>
Sun, 24 Mar 2024 13:56:35 +0000 (13:56 +0000)
committerjca <jca@openbsd.org>
Sun, 24 Mar 2024 13:56:35 +0000 (13:56 +0000)
commitace1aaedae16f4098783ed4a8c5602142650126c
treedfadbead7d0dd5dcd81dda32fe0caa2cb6099bb1
parentac0599879842b6058f85b8c9153028df25177228
Restore EVP_get_cipherbyname(NULL)/EVP_get_digestbyname(NULL) handling

The previous implementation used the now defunct OBJ_NAME_get() which
bailed out when passed a NULL argument.  Difference spotted by the
regress tests in ports/net/openvpn (regular openvpn use is fine but
openvpn --show-ciphers/--show-digests crashes).

ok tb@
lib/libcrypto/evp/evp_names.c