38#ifndef OPENSSL_NO_ENGINE
39 ENGINE_load_builtin_engines();
43 ENGINE_register_all_complete();
47 ENGINE *e = ENGINE_by_id(engine.c_str());
49 throw openssl_engine_error();
50 if (!ENGINE_set_default(e, ENGINE_METHOD_ALL))
51 throw openssl_engine_error();