]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix parser output in tests/cert-tests/data/gost-cert-nogost.pem
authorFiona Klute <fiona.klute@gmx.de>
Sun, 16 Aug 2020 12:05:44 +0000 (14:05 +0200)
committerFiona Klute <fiona.klute@gmx.de>
Sun, 16 Aug 2020 12:05:44 +0000 (14:05 +0200)
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 <fiona.klute@gmx.de>
tests/cert-tests/data/gost-cert-nogost.pem

index cd9459f9fb071260d873162471d368076b4d53ae..d393374493441754492ed6f54fb43321518f7ca5 100644 (file)
@@ -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