evp: make all _is_a functions accept and handle a NULL argument
authorPauli <pauli@openssl.org>
Thu, 14 Jul 2022 05:17:41 +0000 (15:17 +1000)
committerPauli <pauli@openssl.org>
Sun, 17 Jul 2022 07:51:13 +0000 (17:51 +1000)
commitee8db8c5fb5b091f48d29914126d35a7e29cdcf2
treee6c9238df232c6ecec6a57586e054b31a71e0fd5
parentf80910390cb882f346fe59c9803fc914b9c367c2
evp: make all _is_a functions accept and handle a NULL argument

Makes life easier for callers.

Fixes Coverity 1503326

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18799)
crypto/evp/evp_lib.c
crypto/evp/evp_rand.c
crypto/evp/exchange.c
crypto/evp/kdf_lib.c
crypto/evp/kem.c
crypto/evp/keymgmt_meth.c
crypto/evp/mac_lib.c
crypto/evp/p_lib.c
crypto/evp/signature.c