Have all algorithm test programs call fips_algtest_init() at startup:
[openssl.git] / fips / sha / fips_shatest.c
index e6d1a9519acf131bf9fe929741f551dcfa819610..cdbf7193b6fbff0539906c14e3a56989bb5685e9 100644 (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;