Simplify the code in X509_get_pubkey_parameters(3)
authorschwarze <schwarze@openbsd.org>
Fri, 26 Nov 2021 13:05:03 +0000 (13:05 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 26 Nov 2021 13:05:03 +0000 (13:05 +0000)
commit9c40052cd0b934bec36280f8108fdaf715c55c12
tree170ea1760b89a68749a19b520f6cb549cb555732
parent8fc59ba69d41b781a0d0bb115977284d5d9d6afe
Simplify the code in X509_get_pubkey_parameters(3)
by using X509_get0_pubkey(3) instead of X509_get_pubkey(3);
no functional change.

OK tb@

This is similar to the relevant part of the follwoing commit
from the OpenSSL 1.1.1 branch, which is still under a free licence,
but without the bug that commit introduced into this function in OpenSSL:

commit c01ff880d47392b82cce2f93ac4a9bb8c68f8cc7
Author: Dr. Stephen Henson <steve@openssl.org>
Date:   Mon Dec 14 13:13:32 2015 +0000
lib/libcrypto/x509/x509_vfy.c