From db186f538dfe49bc556889ff50e7ed7e10a39b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 23 Apr 2006 20:38:03 +0000 Subject: [PATCH] (info): new function, prints info about that default modules are in use git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17182 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/hxtool-commands.in | 3 +++ lib/hx509/hxtool.c | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/lib/hx509/hxtool-commands.in b/lib/hx509/hxtool-commands.in index aa4aa2223..e96415836 100644 --- a/lib/hx509/hxtool-commands.in +++ b/lib/hx509/hxtool-commands.in @@ -344,6 +344,9 @@ command = { argument="certificates ..." help = "Query the certificates for a match" } +command = { + name = "info" +} command = { name = "help" name = "?" diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index 7fe28efd6..1bae31581 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -902,6 +902,23 @@ pkcs10_print(struct pkcs10_print_options *opt, int argc, char **argv) return 0; } +int +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); + } + + return 0; +} + + int help(void *opt, int argc, char **argv) {