Have all algorithm test programs call fips_algtest_init() at startup:
[openssl.git] / fips / aes / fips_gcmtest.c
index 5eb7e7f9679dd645e370f73acddcd20ee930c766..7c9efe7d6d324f0cff56d58527739181077896c1 100644 (file)
@@ -292,9 +292,7 @@ int main(int argc,char **argv)
                fprintf(stderr,"%s [-encrypt|-decrypt]\n",argv[0]);
                exit(1);
                }
-       fips_set_error_print();
-       if(!FIPS_mode_set(1))
-               exit(1);
+       fips_algtest_init();
        if(!strcmp(argv[1],"-encrypt"))
                encrypt = 1;
        else if(!strcmp(argv[1],"-encryptIVext"))