From d392dd4448afd4eda7b49cfd9598770af1435711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 23 Apr 2006 20:43:17 +0000 Subject: [PATCH] print dh method too git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17184 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/hxtool.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index 1bae31581..f299f78fe 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -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; }