]> git.ipfire.org Git - thirdparty/openssl.git/commit
Simplify error reporting in X509_PUBKEY_get0()
authorMatt Caswell <matt@openssl.org>
Fri, 4 Jun 2021 13:16:42 +0000 (14:16 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 8 Jun 2021 17:53:39 +0000 (18:53 +0100)
commit1df8322ce0b54d171dea1a364a3c78a8a4980f65
treed79e8aea4977f1eaab0e160eaf07f6cac2c2eef2
parent33fb6ed3ecee73fe2de9047e7bca0bdf2c39303f
Simplify error reporting in X509_PUBKEY_get0()

The X509_PUBKEY_get0() was attempting to recreate any errors that might
have occurred from the earlier decode process when obtaining the EVP_PKEY.
This is brittle at best and the approach would only work with legacy keys.
We remove this and just report an error directly.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15504)
crypto/x509/x_pubkey.c