Just look for "Unable to load Public Key" if no SM2
authorMatt Caswell <matt@openssl.org>
Thu, 27 May 2021 17:00:07 +0000 (18:00 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 8 Jun 2021 17:53:28 +0000 (18:53 +0100)
commit237cb05d342338ac42852cfdec21b900458a537c
tree71a58fdfe431bd960b8198900d001b4c99ace50b
parent29bf83c889c44236f33004ea2a6126c6d92e8b7a
Just look for "Unable to load Public Key" if no SM2

The X509 test was looking for some specific errors when printing an SM2
X509 certificate when SM2 is disabled. In fact these errors appear in the
middle of the certificate printing which is quite odd. There is also a
separate error "Unable to load Public Key" which is more cleanly printed.

With the recent change to using provided keys in certs the old errors are
no longer output. However printing them in the middle of the cert is
probably not right anyway. So we just rely on the "Unable to load Public
Key" message.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15504)
test/recipes/25-test_x509.t