make FIPS checks compliant with new guidance

(gmazyland: Simplified this NIST nonsense, should be still exactly
equivalent to former patch)
This commit is contained in:
Ondrej Kozina
2013-11-06 18:04:10 +01:00
committed by Milan Broz
parent e52d5f3d98
commit a21c0503f8
6 changed files with 22 additions and 24 deletions

View File

@@ -1413,7 +1413,8 @@ int main(int argc, const char **argv)
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
crypt_fips_self_check(NULL);
if (crypt_fips_mode())
crypt_log(NULL, CRYPT_LOG_VERBOSE, _("Running in FIPS mode.\n"));
popt_context = poptGetContext(PACKAGE, argc, argv, popt_options, 0);
poptSetOtherOptionHelp(popt_context,