Skip to content

Commit

Permalink
fips: setup the FIPS provider in pendantic mode for testing
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from #20762)
  • Loading branch information
paulidale authored and hlandau committed Apr 21, 2023
1 parent 4454c20 commit c04e78f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/recipes/00-prep_fipsmodule_cnf.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ my $fipsmoduleconf = bldtop_file('test', 'fipsmodule.cnf');
plan tests => 1;

# Create the $fipsmoduleconf file
ok(run(app(['openssl', 'fipsinstall',
ok(run(app(['openssl', 'fipsinstall', '-pedantic',
'-module', $fipsmodule, '-provider_name', 'fips',
'-section_name', 'fips_sect', '-out', $fipsmoduleconf])),
"fips install");
9 changes: 8 additions & 1 deletion util/mk-fipsmodule-cnf.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@

use Getopt::Long;

my $activate = 1;
# Module options for pedantic FIPS mode
# self_test_onload happens if install_mac isn't included, don't add it below
my $conditional_errors = 1;
my $security_checks = 1;
my $ems_check = 0;
my $drgb_no_trunc_dgst = 0;

my $activate = 1;
my $mac_key;
my $module_name;
my $section_name = "fips_sect";
Expand Down Expand Up @@ -40,5 +45,7 @@
activate = $activate
conditional-errors = $conditional_errors
security-checks = $security_checks
ems_check = $ems_check
drgb_no_trunc_dgst = $drgb_no_trunc_dgst
module-mac = $module_mac
_____

0 comments on commit c04e78f

Please sign in to comment.