From 5e4eb9954b415fd685bfda69603bec52c5843778 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 19 Oct 2011 22:34:53 +0000 Subject: add authentication parameter to FIPS_module_mode_set --- Configure | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Configure') 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.h") || die "can't open fips_auth.h"; + while() + { + 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"; -- cgit v1.2.3