From 61667a4e1ea607ef891b96b2ae462fed0f7117d0 Mon Sep 17 00:00:00 2001 From: Fiona Klute Date: Sun, 16 Aug 2020 14:05:44 +0200 Subject: Fix parser output in tests/cert-tests/data/gost-cert-nogost.pem When building without GOST support parsing a GOST certificate must return an "error importing public key" message instead of key details. This change makes tests/cert-tests/pem-decoding pass for builds with --disable-gost. Signed-off-by: Fiona Klute --- tests/cert-tests/data/gost-cert-nogost.pem | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tests/cert-tests/data/gost-cert-nogost.pem b/tests/cert-tests/data/gost-cert-nogost.pem index cd9459f9fb..d393374493 100644 --- a/tests/cert-tests/data/gost-cert-nogost.pem +++ b/tests/cert-tests/data/gost-cert-nogost.pem @@ -6,17 +6,8 @@ X.509 Certificate Information: Not Before: Fri Aug 17 06:47:36 UTC 2012 Not After: Sat Aug 17 06:47:36 UTC 2013 Subject: CN=SuperTerm0000001,OU=SuperPlat Terminals,O=SuperPlat,L=Moscow,ST=Russia,C=RU +error importing public key: The curve is unsupported Subject Public Key Algorithm: GOST R 34.10-2001 - Algorithm Security Level: High (256 bits) - Curve: CryptoPro-A - Digest: GOSTR341194 - ParamSet: CryptoPro-A - X: - e0:35:f2:a8:40:cf:ea:25:63:b5:c1:eb:fa:fd:1d:7f - 45:d6:2a:31:96:56:35:75:25:19:f6:62:69:db:da:eb - Y: - 57:41:b2:c1:e2:1f:7b:d0:13:c8:dd:eb:9f:ba:cb:42 - a3:63:c7:0b:f4:e9:24:d7:dd:e9:34:8d:12:18:67:d8 Extensions: Basic Constraints (not critical): Certificate Authority (CA): FALSE @@ -38,11 +29,6 @@ Other Information: Fingerprint: sha1:621f34c4fdd7e93f9b8f18224ba0bcd1c63a4771 sha256:ac6ecf4e7a876edf3e61f538d6061353c2015bfbdf60370492f7404d7f09e13a - Public Key ID: - sha1:43757042dae9e9f5fa92cc2d2cbf4950f28a7bd0 - sha256:cee4a59e7803bafb101af8e39e5355d7895e3b85e7616fe624d48f2c51e8bdbf - Public Key PIN: - pin-sha256:zuSlnngDuvsQGvjjnlNV14leO4XnYW/mJNSPLFHovb8= -----BEGIN CERTIFICATE----- MIICXjCCAgugAwIBAgICAR8wCgYGKoUDAgIDBQAwdDELMAkGA1UEBhMCUlUxDzAN -- cgit v1.2.1