summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-10-19 22:34:53 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-10-19 22:34:53 +0000
commit5e4eb9954b415fd685bfda69603bec52c5843778 (patch)
tree5a131d77836b3d292f151b236da15e3d99b60098 /Configure
parent227a822ab628267b5fd1b168a0a0bd58482b35ef (diff)
add authentication parameter to FIPS_module_mode_set
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/Configure b/Configure
index 63558b3e9a..10ef8cd115 100755
--- a/Configure
+++ b/Configure
@@ -1169,6 +1169,10 @@ $perl=$ENV{'PERL'} or $perl=&which("perl5") or $perl=&which("perl")
or $perl="perl";
my $make = $ENV{'MAKE'} || "make";
+my $fips_auth_key = $ENV{'FIPS_AUTH_KEY'};
+my $fips_auth_officer = $ENV{'FIPS_AUTH_OFFICER'};
+my $fips_auth_user = $ENV{'FIPS_AUTH_USER'};
+
$cross_compile_prefix=$ENV{'CROSS_COMPILE'} if $cross_compile_prefix eq "";
chop $openssldir if $openssldir =~ /\/$/;
@@ -1621,6 +1625,21 @@ if ($strict_warnings)
}
}
+if ($fipscanisterinternal eq "y")
+ {
+ open(IN,"<fips/fips_auth.in") || die "can't open fips_auth.in";
+ open(OUT,">fips/fips_auth.h") || die "can't open fips_auth.h";
+ while(<IN>)
+ {
+ s/FIPS_AUTH_KEY.*$/FIPS_AUTH_KEY $fips_auth_key/ if defined $fips_auth_key;
+ s/FIPS_AUTH_CRYPTO_OFFICER.*$/FIPS_AUTH_CRYPTO_OFFICER $fips_auth_officer/ if defined $fips_auth_officer;
+ s/FIPS_AUTH_CRYPTO_USER.*$/FIPS_AUTH_CRYPTO_USER $fips_auth_user/ if defined $fips_auth_user;
+ print OUT $_;
+ }
+ close IN;
+ close OUT;
+ }
+
my $mforg = $fipscanisteronly ? "Makefile.fips" : "Makefile.org";
open(IN,"<$mforg") || die "unable to read $mforg:$!\n";