/* Define to 1 if you have the `EVP_sha512' function. */
@HAVE_EVP_SHA512@
-/* Define if OpenSSL provides FIPS_mode() */
-@HAVE_FIPS_MODE@
-
/* Define if OpenSSL includes DSA support */
@HAVE_OPENSSL_DSA@
"HAVE_EVP_SHA256",
"HAVE_EVP_SHA384",
"HAVE_EVP_SHA512",
- "HAVE_FIPS_MODE",
"HAVE_GEOIP",
"HAVE_GEOIP_CITY_V6",
"HAVE_GEOIP_V6",
}
}
-# check FIPS_mode
-
-if ($use_openssl eq "yes") {
- if ($verbose) {
- printf "checking for FIPS_mode\n";
- }
- open F, ">testfips.c" || die $!;
- print F << 'EOF';
-extern int FIPS_mode();
-
-int main() {
- return FIPS_mode();
-}
-EOF
- close F;
- my $library = $configlib{"OPENSSL_LIB"};
- $compret = `cl /nologo /MD testfips.c "$library"`;
- if (grep { -f and -x } ".\\testfips.exe") {
- $configdefh{"HAVE_FIPS_MODE"} = 1;
- } else {
- if ($verbose) {
- print "can't compile FIPS_mode test: $compret\n";
- print "disabling FIPS_mode\n";
- }
- }
-}
-
# check EVP_sha256 / EVP_sha384 / EVP_sha512
if ($use_openssl eq "yes") {