Add client cert type tests
authorDr. Stephen Henson <steve@openssl.org>
Fri, 13 Jan 2017 17:41:48 +0000 (17:41 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 15 Jan 2017 00:23:34 +0000 (00:23 +0000)
Reviewed-by: Emilia Käsper <emilia@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2224)

test/ssl-tests/04-client_auth.conf
test/ssl-tests/04-client_auth.conf.in

index 0e91bed9f18ebbdf20fbd731d82867c5bca8f79e..5b725c76b17bbedecee6ee83ca858d46b4ed6106 100644 (file)
@@ -119,6 +119,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
 VerifyMode = Peer
 
 [test-3]
+ExpectedClientCertType = RSA
 ExpectedResult = Success
 
 
@@ -262,6 +263,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
 VerifyMode = Peer
 
 [test-8]
+ExpectedClientCertType = RSA
 ExpectedResult = Success
 
 
@@ -409,6 +411,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
 VerifyMode = Peer
 
 [test-13]
+ExpectedClientCertType = RSA
 ExpectedResult = Success
 
 
@@ -556,6 +559,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
 VerifyMode = Peer
 
 [test-18]
+ExpectedClientCertType = RSA
 ExpectedResult = Success
 
 
index cd3d42f41628fa30e1be3d1416fed386fec2737f..8738f908de06788341c6a9ec8437b44fda5884f4 100644 (file)
@@ -96,7 +96,9 @@ sub generate_tests() {
                     "Certificate" => "\${ENV::TEST_CERTS_DIR}${dir_sep}ee-client-chain.pem",
                     "PrivateKey"  => "\${ENV::TEST_CERTS_DIR}${dir_sep}ee-key.pem",
                 },
-                test   => { "ExpectedResult" => "Success" },
+                test   => { "ExpectedResult" => "Success",
+                            "ExpectedClientCertType" => "RSA",
+                },
             };
 
             # Handshake with client authentication but without the root certificate.