isakmpd: stop reaching into EVP_PKEY.
authortb <tb@openbsd.org>
Fri, 19 Nov 2021 23:15:59 +0000 (23:15 +0000)
committertb <tb@openbsd.org>
Fri, 19 Nov 2021 23:15:59 +0000 (23:15 +0000)
commitfa35da42ce7ae23546eb96810fb062c5bac56d7a
tree35e8bd7f7f25fe48016084fcf33ddb69af780663
parent176e02226a120ca72ea7e1b8914adf6860be7476
isakmpd: stop reaching into EVP_PKEY.

Straightforward conversion to the OpenSSL 1.1 API as a step towards
making EVP_PKEY opaque. EVP_PKEY_get0_RSA() can't fail if we know
that the pkey type is RSA.

ok sthen
sbin/isakmpd/x509.c