(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:
Love Hörnquist Åstrand
2006-01-13 08:41:06 +00:00
parent db4f904fbb
commit 38dd4722c8

View File

@@ -305,11 +305,19 @@ ENGINE_add_conf_module(void)
*/
engine = ENGINE_by_dso("/usr/heimdal/lib/hc-modules/hc-gmp.so", NULL);
if (engine) {
const RSA_METHOD *rsamethod = ENGINE_get_RSA(engine);
if (rsamethod)
RSA_set_default_method(rsamethod);
if (engine == NULL)
return;
{
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);
}
}