isaacpittman-hitachi / rpms / openssl

Forked from rpms/openssl 2 years ago
Clone

Blame SOURCES/openssl-1.1.1-no-brainpool.patch

3a273b
diff -up openssl-1.1.1b/test/ssl-tests/20-cert-select.conf.in.no-brainpool openssl-1.1.1b/test/ssl-tests/20-cert-select.conf.in
3a273b
--- openssl-1.1.1b/test/ssl-tests/20-cert-select.conf.in.no-brainpool	2019-02-26 15:15:30.000000000 +0100
3a273b
+++ openssl-1.1.1b/test/ssl-tests/20-cert-select.conf.in	2019-05-07 11:52:35.885597934 +0200
3a273b
@@ -141,22 +141,23 @@ our @tests = (
3a273b
     {
3a273b
         name => "ECDSA with brainpool",
3a273b
         server =>  {
3a273b
-            "Certificate" => test_pem("server-ecdsa-brainpoolP256r1-cert.pem"),
3a273b
-            "PrivateKey" => test_pem("server-ecdsa-brainpoolP256r1-key.pem"),
3a273b
-            "Groups" => "brainpoolP256r1",
3a273b
+#            "Certificate" => test_pem("server-ecdsa-brainpoolP256r1-cert.pem"),
3a273b
+#            "PrivateKey" => test_pem("server-ecdsa-brainpoolP256r1-key.pem"),
3a273b
+#            "Groups" => "brainpoolP256r1",
3a273b
+            "CipherString" => "aNULL",
3a273b
         },
3a273b
         client => {
3a273b
             #We don't restrict this to TLSv1.2, although use of brainpool
3a273b
             #should force this anyway so that this should succeed
3a273b
             "CipherString" => "aECDSA",
3a273b
             "RequestCAFile" => test_pem("root-cert.pem"),
3a273b
-            "Groups" => "brainpoolP256r1",
3a273b
+#            "Groups" => "brainpoolP256r1",
3a273b
         },
3a273b
         test   => {
3a273b
-            "ExpectedServerCertType" =>, "brainpoolP256r1",
3a273b
-            "ExpectedServerSignType" =>, "EC",
3a273b
+#            "ExpectedServerCertType" =>, "brainpoolP256r1",
3a273b
+#            "ExpectedServerSignType" =>, "EC",
3a273b
             # Note: certificate_authorities not sent for TLS < 1.3
3a273b
-            "ExpectedServerCANames" =>, "empty",
3a273b
+#            "ExpectedServerCANames" =>, "empty",
3a273b
             "ExpectedResult" => "Success"
3a273b
         },
3a273b
     },
3a273b
@@ -787,18 +788,19 @@ my @tests_tls_1_3 = (
3a273b
     {
3a273b
         name => "TLS 1.3 ECDSA with brainpool",
3a273b
         server =>  {
3a273b
-            "Certificate" => test_pem("server-ecdsa-brainpoolP256r1-cert.pem"),
3a273b
-            "PrivateKey" => test_pem("server-ecdsa-brainpoolP256r1-key.pem"),
3a273b
-            "Groups" => "brainpoolP256r1",
3a273b
+#            "Certificate" => test_pem("server-ecdsa-brainpoolP256r1-cert.pem"),
3a273b
+#            "PrivateKey" => test_pem("server-ecdsa-brainpoolP256r1-key.pem"),
3a273b
+#            "Groups" => "brainpoolP256r1",
3a273b
+             "CipherString" => "aNULL",
3a273b
         },
3a273b
         client => {
3a273b
             "RequestCAFile" => test_pem("root-cert.pem"),
3a273b
-            "Groups" => "brainpoolP256r1",
3a273b
+#            "Groups" => "brainpoolP256r1",
3a273b
             "MinProtocol" => "TLSv1.3",
3a273b
             "MaxProtocol" => "TLSv1.3"
3a273b
         },
3a273b
         test   => {
3a273b
-            "ExpectedResult" => "ServerFail"
3a273b
+            "ExpectedResult" => "Success"
3a273b
         },
3a273b
     },
3a273b
 );
3a273b
diff -up openssl-1.1.1b/test/ssl-tests/20-cert-select.conf.no-brainpool openssl-1.1.1b/test/ssl-tests/20-cert-select.conf
3a273b
--- openssl-1.1.1b/test/ssl-tests/20-cert-select.conf.no-brainpool	2019-02-26 15:15:30.000000000 +0100
3a273b
+++ openssl-1.1.1b/test/ssl-tests/20-cert-select.conf	2019-05-07 12:15:12.762907496 +0200
3a273b
@@ -233,23 +233,18 @@ server = 5-ECDSA with brainpool-server
3a273b
 client = 5-ECDSA with brainpool-client
3a273b
 
3a273b
 [5-ECDSA with brainpool-server]
3a273b
-Certificate = ${ENV::TEST_CERTS_DIR}/server-ecdsa-brainpoolP256r1-cert.pem
3a273b
-CipherString = DEFAULT
3a273b
-Groups = brainpoolP256r1
3a273b
-PrivateKey = ${ENV::TEST_CERTS_DIR}/server-ecdsa-brainpoolP256r1-key.pem
3a273b
+Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
3a273b
+CipherString = aNULL
3a273b
+PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
3a273b
 
3a273b
 [5-ECDSA with brainpool-client]
3a273b
 CipherString = aECDSA
3a273b
-Groups = brainpoolP256r1
3a273b
 RequestCAFile = ${ENV::TEST_CERTS_DIR}/root-cert.pem
3a273b
 VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
3a273b
 VerifyMode = Peer
3a273b
 
3a273b
 [test-5]
3a273b
 ExpectedResult = Success
3a273b
-ExpectedServerCANames = empty
3a273b
-ExpectedServerCertType = brainpoolP256r1
3a273b
-ExpectedServerSignType = EC
3a273b
 
3a273b
 
3a273b
 # ===========================================================
3a273b
@@ -1577,14 +1572,12 @@ server = 47-TLS 1.3 ECDSA with brainpool
3a273b
 client = 47-TLS 1.3 ECDSA with brainpool-client
3a273b
 
3a273b
 [47-TLS 1.3 ECDSA with brainpool-server]
3a273b
-Certificate = ${ENV::TEST_CERTS_DIR}/server-ecdsa-brainpoolP256r1-cert.pem
3a273b
-CipherString = DEFAULT
3a273b
-Groups = brainpoolP256r1
3a273b
-PrivateKey = ${ENV::TEST_CERTS_DIR}/server-ecdsa-brainpoolP256r1-key.pem
3a273b
+Certificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
3a273b
+CipherString = aNULL
3a273b
+PrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
3a273b
 
3a273b
 [47-TLS 1.3 ECDSA with brainpool-client]
3a273b
 CipherString = DEFAULT
3a273b
-Groups = brainpoolP256r1
3a273b
 MaxProtocol = TLSv1.3
3a273b
 MinProtocol = TLSv1.3
3a273b
 RequestCAFile = ${ENV::TEST_CERTS_DIR}/root-cert.pem
3a273b
@@ -1592,7 +1585,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/ro
3a273b
 VerifyMode = Peer
3a273b
 
3a273b
 [test-47]
3a273b
-ExpectedResult = ServerFail
3a273b
+ExpectedResult = Success
3a273b
 
3a273b
 
3a273b
 # ===========================================================