Changeset 95219 in vbox for trunk/src/libs/openssl-3.0.3/test/recipes/15-test_ecparam.t
- Timestamp:
- Jun 8, 2022 7:43:44 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 151730
- Location:
- trunk/src/libs/openssl-3.0.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.0.3
- Property svn:mergeinfo
-
old new 14 14 /vendor/openssl/3.0.1:150323-150324 15 15 /vendor/openssl/3.0.2:150728-150729 16 /vendor/openssl/current:147554-150727 16 /vendor/openssl/3.0.3:151497-151729 17 /vendor/openssl/current:147554-151496
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.0.3/test/recipes/15-test_ecparam.t
r94320 r95219 1 1 #! /usr/bin/env perl 2 # Copyright 2017-202 1The OpenSSL Project Authors. All Rights Reserved.2 # Copyright 2017-2022 The OpenSSL Project Authors. All Rights Reserved. 3 3 # 4 4 # Licensed under the Apache License 2.0 (the "License"). You may not use … … 14 14 use File::Compare qw/compare_text/; 15 15 use OpenSSL::Glob; 16 use OpenSSL::Test qw/:DEFAULT data_file /;16 use OpenSSL::Test qw/:DEFAULT data_file srctop_file bldtop_dir/; 17 17 use OpenSSL::Test::Utils; 18 18 … … 26 26 my @invalid = glob(data_file("invalid", "*.pem")); 27 27 28 plan tests => 1 1;28 plan tests => 12; 29 29 30 30 sub checkload { … … 59 59 } 60 60 } 61 62 my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0); 61 63 62 64 subtest "Check loading valid parameters by ecparam with -check" => sub { … … 114 116 checkcompare(\@valid, "pkeyparam"); 115 117 }; 118 119 subtest "Check loading of fips and non-fips params" => sub { 120 plan skip_all => "FIPS is disabled" 121 if $no_fips; 122 plan tests => 3; 123 124 my $fipsconf = srctop_file("test", "fips-and-base.cnf"); 125 my $defaultconf = srctop_file("test", "default.cnf"); 126 127 $ENV{OPENSSL_CONF} = $fipsconf; 128 129 ok(run(app(['openssl', 'ecparam', 130 '-in', data_file('valid', 'secp384r1-explicit.pem'), 131 '-check'])), 132 "Loading explicitly encoded valid curve"); 133 134 ok(run(app(['openssl', 'ecparam', 135 '-in', data_file('valid', 'secp384r1-named.pem'), 136 '-check'])), 137 "Loading named valid curve"); 138 139 ok(!run(app(['openssl', 'ecparam', 140 '-in', data_file('valid', 'secp112r1-named.pem'), 141 '-check'])), 142 "Fail loading named non-fips curve"); 143 144 $ENV{OPENSSL_CONF} = $defaultconf; 145 };
Note:
See TracChangeset
for help on using the changeset viewer.