Have all algorithm test programs call fips_algtest_init() at startup:
[openssl.git] / fips / ecdh / fips_ecdhvs.c
index 38178f5eeac0289041be93f7ea9e2f9a9db7eeac..c3ee1743691e414ca596bd8ee318a55b893c7e1c 100644 (file)
@@ -291,9 +291,7 @@ int main(int argc,char **argv)
        int curve_nids[5] = {0,0,0,0,0};
        int param_set = -1;
 
-       fips_set_error_print();
-       if(!FIPS_mode_set(1))
-               exit(1);
+       fips_algtest_init();
 
        if (argn && !strcmp(*args, "ecdhver"))
                {