Bugfix in X509_get_pubkey_parameters(3):
authorschwarze <schwarze@openbsd.org>
Fri, 26 Nov 2021 13:17:09 +0000 (13:17 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 26 Nov 2021 13:17:09 +0000 (13:17 +0000)
commit02c71f028b0460eb651346d03d6c940748208645
treeeff246363470c5aed639b769d6183547ac22be61
parent9c40052cd0b934bec36280f8108fdaf715c55c12
Bugfix in X509_get_pubkey_parameters(3):

If EVP_PKEY_copy_parameters(3) fails - among other reasons, this
may happen when out of memory - the pkey argument and/or the chain
argument will not contain all the desired parameters after returning.
Consequently, report the failure to the caller rather than silently
ignoring it.

OK tb@
lib/libcrypto/x509/x509_vfy.c