x509: improve error reporting
authorPauli <pauli@openssl.org>
Tue, 29 Jun 2021 01:43:00 +0000 (11:43 +1000)
committerPauli <pauli@openssl.org>
Wed, 30 Jun 2021 03:53:49 +0000 (13:53 +1000)
commit10af976962b2383bb3044120a764037361b8bff7
treedc8ad4439a991e4ffd93e3980b0d25ea3646a519
parenta73a5d0a14842f51d1a6bad15f3e997b0468b99d
x509: improve error reporting

Distinguish between not being able to extract a public key versus not knowing
the key's type.

Alternative to #15921

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15944)
crypto/x509/x509_cmp.c