VirtualBox

Ignore:
Timestamp:
Jun 8, 2022 7:43:44 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151730
Message:

libs/openssl: Switched to v3.0.3, bugref:10128

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  
        1414/vendor/openssl/3.0.1:150323-150324
        1515/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
  • trunk/src/libs/openssl-3.0.3/test/recipes/15-test_ecparam.t

    r94320 r95219  
    11#! /usr/bin/env perl
    2 # Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved.
     2# Copyright 2017-2022 The OpenSSL Project Authors. All Rights Reserved.
    33#
    44# Licensed under the Apache License 2.0 (the "License").  You may not use
     
    1414use File::Compare qw/compare_text/;
    1515use OpenSSL::Glob;
    16 use OpenSSL::Test qw/:DEFAULT data_file/;
     16use OpenSSL::Test qw/:DEFAULT data_file srctop_file bldtop_dir/;
    1717use OpenSSL::Test::Utils;
    1818
     
    2626my @invalid = glob(data_file("invalid", "*.pem"));
    2727
    28 plan tests => 11;
     28plan tests => 12;
    2929
    3030sub checkload {
     
    5959    }
    6060}
     61
     62my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
    6163
    6264subtest "Check loading valid parameters by ecparam with -check" => sub {
     
    114116    checkcompare(\@valid, "pkeyparam");
    115117};
     118
     119subtest "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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette