summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xConfigure10
-rw-r--r--ms/do_fips.bat2
2 files changed, 11 insertions, 1 deletions
diff --git a/Configure b/Configure
index 4705a54063..fb8cceb430 100755
--- a/Configure
+++ b/Configure
@@ -870,6 +870,16 @@ PROCESS_ARGS:
$fips = 1;
$nofipscanistercheck = 1;
}
+ elsif (/^fipscheck$/)
+ {
+ if ($fipscanisteronly != 2)
+ {
+ print STDERR <<"EOF";
+ERROR: FIPS not autodetected. Not running from restricted tarball??
+EOF
+ exit(1);
+ }
+ }
elsif (/^fipscanisteronly$/)
{
$fips = 1;
diff --git a/ms/do_fips.bat b/ms/do_fips.bat
index aac21ad327..a1e19aa114 100644
--- a/ms/do_fips.bat
+++ b/ms/do_fips.bat
@@ -43,7 +43,7 @@ SET ASM=nasm
:compile
-perl Configure %TARGET% fipscanisteronly
+perl Configure %TARGET% fipscheck
pause
echo on