diff options
author | Richard Levitte <levitte@openssl.org> | 2003-08-11 14:24:52 +0400 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-08-11 14:24:52 +0400 |
commit | ec47bb7c817207b5904e8cfd01cb91aba119dd4e (patch) | |
tree | d28ab8cefc1e2c9835d7228bf81a0f8e5b7635af /Configure | |
parent | bf50d5b4ac6164e1bdca3ce0190cf65cfbdffa68 (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-x | Configure | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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$/); |