Don't use rdrand engine as default unless explicitly requested.

This commit is contained in:
Dr. Stephen Henson 2013-12-11 14:45:12 +00:00
parent 57c4e42d75
commit 8f68678989

View File

@ -104,6 +104,7 @@ static int bind_helper(ENGINE *e)
{ {
if (!ENGINE_set_id(e, engine_e_rdrand_id) || if (!ENGINE_set_id(e, engine_e_rdrand_id) ||
!ENGINE_set_name(e, engine_e_rdrand_name) || !ENGINE_set_name(e, engine_e_rdrand_name) ||
!ENGINE_set_flags(e, ENGINE_FLAGS_NO_REGISTER_ALL) ||
!ENGINE_set_init_function(e, rdrand_init) || !ENGINE_set_init_function(e, rdrand_init) ||
!ENGINE_set_RAND(e, &rdrand_meth) ) !ENGINE_set_RAND(e, &rdrand_meth) )
return 0; return 0;