Add a no-fips Configure option

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8537)
This commit is contained in:
Matt Caswell 2019-03-20 14:29:05 +00:00
parent 9efa0ae0b6
commit e75455173b
2 changed files with 8 additions and 2 deletions

View File

@ -369,6 +369,7 @@ my @disablables = (
"err", "err",
"external-tests", "external-tests",
"filenames", "filenames",
"fips",
"fuzz-libfuzzer", "fuzz-libfuzzer",
"fuzz-afl", "fuzz-afl",
"gost", "gost",
@ -512,6 +513,8 @@ my @disable_cascades = (
# or modules. # or modules.
"pic" => [ "shared", "module" ], "pic" => [ "shared", "module" ],
"module" => [ "fips" ],
"engine" => [ grep /eng$/, @disablables ], "engine" => [ grep /eng$/, @disablables ],
"hw" => [ "padlockeng" ], "hw" => [ "padlockeng" ],
@ -1221,8 +1224,8 @@ foreach my $what (sort keys %disabled) {
$config{options} .= " no-$what"; $config{options} .= " no-$what";
if (!grep { $what eq $_ } ( 'buildtest-c++', 'threads', 'shared', 'module', if (!grep { $what eq $_ } ( 'buildtest-c++', 'fips', 'threads', 'shared',
'pic', 'dynamic-engine', 'makedepend', 'module', 'pic', 'dynamic-engine', 'makedepend',
'zlib-dynamic', 'zlib', 'sse2' )) { 'zlib-dynamic', 'zlib', 'sse2' )) {
(my $WHAT = uc $what) =~ s|-|_|g; (my $WHAT = uc $what) =~ s|-|_|g;
my $skipdir = $what; my $skipdir = $what;

View File

@ -394,6 +394,9 @@
Don't compile in filename and line number information (e.g. Don't compile in filename and line number information (e.g.
for errors and memory allocation). for errors and memory allocation).
no-fips
Don't compile the FIPS module
enable-fuzz-libfuzzer, enable-fuzz-afl enable-fuzz-libfuzzer, enable-fuzz-afl
Build with support for fuzzing using either libfuzzer or AFL. Build with support for fuzzing using either libfuzzer or AFL.
These are developer options only. They may not work on all These are developer options only. They may not work on all