mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
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)
This commit is contained in:
parent
29bf83c889
commit
237cb05d34
@ -127,6 +127,6 @@ ok(test_errors("RC2-40-CBC", "v3-certs-RC2.p12", '-passin', 'pass:v3-certs'),
|
|||||||
SKIP: {
|
SKIP: {
|
||||||
skip "sm2 not disabled", 1 if !disabled("sm2");
|
skip "sm2 not disabled", 1 if !disabled("sm2");
|
||||||
|
|
||||||
ok(test_errors("unknown group|unsupported algorithm", "sm2.pem", '-text'),
|
ok(test_errors("Unable to load Public Key", "sm2.pem", '-text'),
|
||||||
"error loading unsupported sm2 cert");
|
"error loading unsupported sm2 cert");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user