提交 a470f023 编写于 作者: D Dr. Stephen Henson

Add client cert type tests

Reviewed-by: NEmilia Käsper <emilia@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2224)
上级 edb8a5eb
...@@ -119,6 +119,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem ...@@ -119,6 +119,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
VerifyMode = Peer VerifyMode = Peer
[test-3] [test-3]
ExpectedClientCertType = RSA
ExpectedResult = Success ExpectedResult = Success
...@@ -262,6 +263,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem ...@@ -262,6 +263,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
VerifyMode = Peer VerifyMode = Peer
[test-8] [test-8]
ExpectedClientCertType = RSA
ExpectedResult = Success ExpectedResult = Success
...@@ -409,6 +411,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem ...@@ -409,6 +411,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
VerifyMode = Peer VerifyMode = Peer
[test-13] [test-13]
ExpectedClientCertType = RSA
ExpectedResult = Success ExpectedResult = Success
...@@ -556,6 +559,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem ...@@ -556,6 +559,7 @@ VerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
VerifyMode = Peer VerifyMode = Peer
[test-18] [test-18]
ExpectedClientCertType = RSA
ExpectedResult = Success ExpectedResult = Success
......
...@@ -96,7 +96,9 @@ sub generate_tests() { ...@@ -96,7 +96,9 @@ sub generate_tests() {
"Certificate" => "\${ENV::TEST_CERTS_DIR}${dir_sep}ee-client-chain.pem", "Certificate" => "\${ENV::TEST_CERTS_DIR}${dir_sep}ee-client-chain.pem",
"PrivateKey" => "\${ENV::TEST_CERTS_DIR}${dir_sep}ee-key.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. # Handshake with client authentication but without the root certificate.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册