36#ifndef OPENSSL_NO_ENGINE
37 ENGINE_load_builtin_engines();
41 ENGINE_register_all_complete();
45 ENGINE *e = ENGINE_by_id(engine.c_str());
47 throw openssl_engine_error();
48 if (!ENGINE_set_default(e, ENGINE_METHOD_ALL))
49 throw openssl_engine_error();