(ENGINE_add_conf_module): Also load DH
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16540 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -305,11 +305,19 @@ ENGINE_add_conf_module(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
engine = ENGINE_by_dso("/usr/heimdal/lib/hc-modules/hc-gmp.so", NULL);
|
engine = ENGINE_by_dso("/usr/heimdal/lib/hc-modules/hc-gmp.so", NULL);
|
||||||
if (engine) {
|
if (engine == NULL)
|
||||||
const RSA_METHOD *rsamethod = ENGINE_get_RSA(engine);
|
return;
|
||||||
if (rsamethod)
|
{
|
||||||
RSA_set_default_method(rsamethod);
|
const RSA_METHOD *method = ENGINE_get_RSA(engine);
|
||||||
|
if (method)
|
||||||
|
RSA_set_default_method(method);
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
const DH_METHOD *method = ENGINE_get_DH(engine);
|
||||||
|
if (method)
|
||||||
|
DH_set_default_method(method);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user