diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-06-22 12:30:18 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-06-22 12:30:18 +0000 |
commit | ce02589259c4eecf5479d6d5714d8caee7b5e326 (patch) | |
tree | 7477803fa00800e44d494f58c3f51c6aae409906 /util | |
parent | 93dd7d3848d750f25137cd08ebde7bc06706c13d (diff) |
Now the FIPS capable OpenSSL is available simplify the various FIPS test
build options.
All fispcanisterbuild builds only build fipscanister.o and include symbol
renaming.
Move all renamed symbols to fipssyms.h
Update README.FIPS
Diffstat (limited to 'util')
-rw-r--r-- | util/fipsas.pl | 2 | ||||
-rwxr-xr-x | util/mk1mf.pl | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/util/fipsas.pl b/util/fipsas.pl index cad7c08ca2..6e10d7d8d5 100644 --- a/util/fipsas.pl +++ b/util/fipsas.pl @@ -19,7 +19,7 @@ if ($ARGS[0] eq "norunasm") my $enabled = 0; -$enabled = 1 if $ENV{CFLAG} =~ /-DOPENSSL_FIPSSYMS/; +$enabled = 1 if $ENV{FIPSCANISTERINTERNAL} eq "y"; if ($enabled == 0 && $runasm) { diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 8f01f0c462..5d024b15cb 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -60,6 +60,7 @@ my %mf_import = ( CMLL_ENC => \$mf_cm_asm, MODES_ASM_OBJ => \$mf_modes_asm, FIPSCANISTERONLY => \$mf_fipscanisteronly + FIPSCANISTERINTERNAL => \$mf_fipscanisterinternal ); open(IN,"<Makefile") || die "unable to open Makefile!\n"; @@ -75,7 +76,7 @@ close(IN); $debug = 1 if $mf_platform =~ /^debug-/; -if ($mf_fipscanisteronly eq "y") { +if ($mf_fipscanisterinternal eq "y") { $fips = 1; $fipscanisterbuild = 1; $fipscanisteronly = 1; @@ -1196,7 +1197,7 @@ sub perlasm_compile_target $bname =~ s/(.*)\.[^\.]$/$1/; $ret ="\$(TMP_D)$o$bname.asm: $source\n"; $ret.="\t\$(PERL) $source $asmtype \$(CFLAG) >\$\@\n"; - if ($cflags =~ /-DOPENSSL_FIPSSYMS/) + if ($fipscanisteronly) { $ret .= "\t\$(PERL) util\\fipsas.pl . \$@ norunasm \$(CFLAG)\n"; } |