3 # Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
5 # Licensed under the Apache License 2.0 (the "License"). You may not use
6 # this file except in compliance with the License. You can obtain a copy
7 # in the file LICENSE in the source distribution or at
8 # https://www.openssl.org/source/license.html
12 use OpenSSL::Test qw(:DEFAULT srctop_file);
13 use OpenSSL::Test::Utils;
15 setup("test_algorithmid");
20 'ee-cert' => 'ca-cert',
21 'ee-cert2' => 'ca-cert2',
23 # 'ee-pss-sha1-cert' => 'ca-cert',
24 # 'ee-pss-sha256-cert' => 'ca-cert',
25 # 'ee-pss-cert' => 'ca-pss-cert',
26 # 'server-pss-restrict-cert' => 'rootcert',
32 'ee-cert-ec-explicit' => 'ca-cert-ec-named',
33 'ee-cert-ec-named-explicit' => 'ca-cert-ec-explicit',
34 'ee-cert-ec-named-named' => 'ca-cert-ec-named',
35 # 'server-ed448-cert' => 'root-ed448-cert'
36 'server-ecdsa-brainpoolP256r1-cert' => 'rootcert',
43 disabled('dsa') ? () : 'testdsapub',
44 disabled('ec') ? () : qw(testecpub-p256 tested25519pub tested448pub)
46 my @certs = sort keys %certs_info;
53 ok(run(test(['algorithmid_test', '-x509',
54 srctop_file('test', 'certs', "$_.pem"),
55 srctop_file('test', 'certs', "$certs_info{$_}.pem")])));
58 foreach (sort @pubkeys) {
59 ok(run(test(['algorithmid_test', '-spki', srctop_file('test', "$_.pem")])));