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:
authorDr. Stephen Henson <steve@openssl.org>2011-04-10 21:31:03 +0400
committerDr. Stephen Henson <steve@openssl.org>2011-04-10 21:31:03 +0400
commitccc5784e37ef124a8404db578da67842ece0b47b (patch)
treed4648bf2c316e4a5af2235c853ed03726e938453 /Configure
parent8742ae6e19e4d899d77ef0ca961775764e5bfe62 (diff)
set OPENSSL_FIPSSYMS for restricted buils and auto detect no-ec2m
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure32
1 files changed, 21 insertions, 11 deletions
diff --git a/Configure b/Configure
index 5c9e34707f..22a5793e24 100755
--- a/Configure
+++ b/Configure
@@ -693,17 +693,6 @@ my $default_ranlib;
my $perl;
my $fips=0;
-# If ssl directory missing assume truncated FIPS tarball
-if (! -d ssl)
- {
- print STDERR "Auto Configuring fipsonly\n";
- $fips = 1;
- $nofipscanistercheck = 1;
- $fipslibdir="";
- $fipscanisterinternal="y";
- $fipscanisteronly = 1;
- }
-
# All of the following is disabled by default (RC5 was enabled before 0.9.8):
my %disabled = ( # "what" => "comment" [or special keyword "experimental"]
@@ -720,6 +709,21 @@ my %disabled = ( # "what" => "comment" [or special keyword "experimental
);
my @experimental = ();
+# If ssl directory missing assume truncated FIPS tarball
+if (! -d ssl)
+ {
+ print STDERR "Auto Configuring fipsonly\n";
+ $fips = 1;
+ $nofipscanistercheck = 1;
+ $fipslibdir="";
+ $fipscanisterinternal="y";
+ $fipscanisteronly = 2;
+ if (! -f "crypto/bn/bn_gf2m.c" )
+ {
+ $disabled{ec2m} = "forced";
+ }
+ }
+
# This is what $depflags will look like with the above defaults
# (we need this to see if we should advise the user to run "make depend"):
my $default_depflags = " -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MD2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_STORE";
@@ -1117,6 +1121,12 @@ foreach (sort (keys %disabled))
}
my $exp_cflags = "";
+
+if ($fipscanisteronly == 2)
+ {
+ $exp_cflags .= " -DOPENSSL_FIPSSYMS";
+ }
+
foreach (sort @experimental)
{
my $ALGO;