Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-08-11 14:24:52 +0400
committerRichard Levitte <levitte@openssl.org>2003-08-11 14:24:52 +0400
commitec47bb7c817207b5904e8cfd01cb91aba119dd4e (patch)
treed28ab8cefc1e2c9835d7228bf81a0f8e5b7635af /Configure
parentbf50d5b4ac6164e1bdca3ce0190cf65cfbdffa68 (diff)
- Add a configuration keyword "fips" to compile with FIPS
implementations. - Reorder the build so the standalone FIPS SHA1 checker is built first. - Add necessary defines to avoid symbol clashes between FIPS and non-FIPS implementations. - Change necessary signatures. - Correct bugs in FIPS build Makefiles. - make update
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/Configure b/Configure
index 5251903ba2..e26e4dcb5c 100755
--- a/Configure
+++ b/Configure
@@ -630,6 +630,7 @@ my $rmd160_obj="";
my $processor="";
my $default_ranlib;
my $perl;
+my $fips=0;
my $no_ssl2=0;
my $no_ssl3=0;
@@ -803,6 +804,8 @@ PROCESS_ARGS:
}
elsif (/^386$/)
{ $processor=386; }
+ elsif (/^fips$/)
+ { $fips=1; }
elsif (/^rsaref$/)
{
# No RSAref support any more since it's not needed.
@@ -1138,7 +1141,12 @@ if ($ranlib eq "")
$bn_obj = $bn_asm unless $bn_obj ne "";
-$des_obj=$des_enc unless ($des_obj =~ /\.o$/);
+if ($fips)
+ {
+ $des_obj=$sha1_obj="";
+ $cflags.=" -DFIPS";
+ }
+$des_obj=$des_enc unless (!$fips && $des_obj =~ /\.o$/);
$bf_obj=$bf_enc unless ($bf_obj =~ /\.o$/);
$cast_obj=$cast_enc unless ($cast_obj =~ /\.o$/);
$rc4_obj=$rc4_enc unless ($rc4_obj =~ /\.o$/);