print dh method too

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17184 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-23 20:43:17 +00:00
parent b98b142233
commit d392dd4448

View File

@@ -909,11 +909,16 @@ info(void *opt, int argc, char **argv)
ENGINE_add_conf_module();
{
const RSA_METHOD *rsamethod;
rsamethod = RSA_get_default_method();
if (rsamethod != NULL)
printf("rsa: %s\n", rsamethod->name);
const RSA_METHOD *m = RSA_get_default_method();
if (m != NULL)
printf("rsa: %s\n", m->name);
}
{
const DH_METHOD *m = DH_get_default_method();
if (m != NULL)
printf("dh: %s\n", m->name);
}
return 0;
}