提交 da1f88bf 编写于 作者: D Dr. David von Oheimb

Add four more verify test cases on the self-signed Ed25519 and self-issed X25519 certs

Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10587)
上级 4acd484d
......@@ -27,7 +27,7 @@ sub verify {
run(app([@args]));
}
plan tests => 139;
plan tests => 143;
# Canonical success
ok(verify("ee-cert", "sslserver", ["root-cert"], ["ca-cert"]),
......@@ -369,13 +369,25 @@ ok(verify("root-cert-rsa2", "sslserver", ["root-cert-rsa2"], [], "-check_ss_sig"
"Public Key Algorithm rsa instead of rsaEncryption");
SKIP: {
skip "Ed25519 is not supported by this OpenSSL build", 1
skip "Ed25519 is not supported by this OpenSSL build", 5
if disabled("ec");
# ED25519 certificate from draft-ietf-curdle-pkix-04
ok(verify("ee-ed25519", "sslserver", ["root-ed25519"], []),
"accept X25519 EE cert issued by trusted Ed25519 self-signed CA cert");
ok(!verify("root-ed25519", "sslserver", ["ee-ed25519"], []),
"fail Ed25519 CA and EE certs swapped");
ok(verify("root-ed25519", "sslserver", ["root-ed25519"], []),
"accept trusted Ed25519 self-signed CA cert");
ok(!verify("ee-ed25519", "sslserver", ["ee-ed25519"], []),
"fail trusted Ed25519-signed self-issued X25519 cert");
ok(verify("ee-ed25519", "sslserver", ["ee-ed25519"], [], "-partial_chain"),
"accept last-resort direct leaf match Ed25519-signed self-issued cert");
}
SKIP: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册