apps/ca.c: Handle EVP_PKEY_get_default_digest_name() returning 1 with "UNDEF"
authorRichard Levitte <levitte@openssl.org>
Wed, 8 Mar 2023 10:53:34 +0000 (11:53 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 15 Jun 2023 12:04:22 +0000 (14:04 +0200)
commitc69ba7b987fa87731b1abb7e997817ef5bf602e1
treec75726f26ea00c4a036739cfdd39c0921f82470d
parent76a9e73c8af02078c093fabdf768bd545ea3b1d9
apps/ca.c: Handle EVP_PKEY_get_default_digest_name() returning 1 with "UNDEF"

EVP_PKEY_get_default_digest_name() may return 1 with the returned digest
name "UNDEF".  This case hasn't been documented, and the meaning has been
left undefined, until now.

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20460)

(cherry picked from commit af99d55078582fb2ac35787043d56e0c10b1fe97)
apps/ca.c
doc/man3/EVP_PKEY_get_default_digest_nid.pod