Have all algorithm test programs call fips_algtest_init() at startup:

this will perform all standalone operations such as setting error
callbacks, entering FIPS mode etc.
This commit is contained in:
Dr. Stephen Henson
2011-03-25 16:36:46 +00:00
parent d4178c8fb1
commit cd22dfbf01
18 changed files with 28 additions and 51 deletions

View File

@@ -91,9 +91,7 @@ int main(int argc, char **argv)
FILE *in = NULL, *out = NULL;
int ret = 1;
fips_set_error_print();
if(!FIPS_mode_set(1))
goto end;
fips_algtest_init();
if (argc == 1)
in = stdin;