(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
This commit is contained in:
Love Hörnquist Åstrand
2006-04-23 20:38:03 +00:00
parent 78ed40ac39
commit db186f538d
2 changed files with 20 additions and 0 deletions

View File

@@ -344,6 +344,9 @@ command = {
argument="certificates ..." argument="certificates ..."
help = "Query the certificates for a match" help = "Query the certificates for a match"
} }
command = {
name = "info"
}
command = { command = {
name = "help" name = "help"
name = "?" name = "?"

View File

@@ -902,6 +902,23 @@ pkcs10_print(struct pkcs10_print_options *opt, int argc, char **argv)
return 0; 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 int
help(void *opt, int argc, char **argv) help(void *opt, int argc, char **argv)
{ {