From 6f88c6a634868a97d9613d6ec3663bf83a05d379 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 1 Jun 2006 12:38:22 +0000 Subject: Add missing prototype. Extend engine utility to print public key algorithms. --- apps/engine.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/engine.c') diff --git a/apps/engine.c b/apps/engine.c index 9a6dc0d822..a93ea4de3c 100644 --- a/apps/engine.c +++ b/apps/engine.c @@ -449,6 +449,7 @@ skip_arg_loop: const int *nids; ENGINE_CIPHERS_PTR fn_c; ENGINE_DIGESTS_PTR fn_d; + ENGINE_PKEY_METHS_PTR fn_pk; if (ENGINE_get_RSA(e) != NULL && !append_buf(&cap_buf, "RSA", @@ -487,6 +488,15 @@ skip_ciphers: goto end; skip_digests: + fn_pk = ENGINE_get_pkey_meths(e); + if(!fn_pk) goto skip_pmeths; + n = fn_pk(e, NULL, &nids, 0); + for(k=0 ; k < n ; ++k) + if(!append_buf(&cap_buf, + OBJ_nid2sn(nids[k]), + &cap_size, 256)) + goto end; +skip_pmeths: if (cap_buf && (*cap_buf != '\0')) BIO_printf(bio_out, " [%s]\n", cap_buf); -- cgit v1.2.3