projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2bfb239
)
Make "openssl engine -c" list any supported digests as well as supported
author
Geoff Thorpe
<geoff@openssl.org>
Mon, 1 Oct 2001 15:41:31 +0000
(15:41 +0000)
committer
Geoff Thorpe
<geoff@openssl.org>
Mon, 1 Oct 2001 15:41:31 +0000
(15:41 +0000)
ciphers.
apps/engine.c
patch
|
blob
|
history
diff --git
a/apps/engine.c
b/apps/engine.c
index e64ed53e95c231563d4dfcaed97d37bb72f06972..8a04fbcd64568775daa6b0215751c24c640219f0 100644
(file)
--- a/
apps/engine.c
+++ b/
apps/engine.c
@@
-432,7
+432,8
@@
skip_arg_loop:
char *cap_buf = NULL;
int k,n;
const int *nids;
char *cap_buf = NULL;
int k,n;
const int *nids;
- ENGINE_CIPHERS_PTR fn;
+ ENGINE_CIPHERS_PTR fn_c;
+ ENGINE_DIGESTS_PTR fn_d;
if (ENGINE_get_RSA(e) != NULL
&& !append_buf(&cap_buf, "RSA",
if (ENGINE_get_RSA(e) != NULL
&& !append_buf(&cap_buf, "RSA",
@@
-451,9
+452,9
@@
skip_arg_loop:
&cap_size, 256))
goto end;
&cap_size, 256))
goto end;
- fn = ENGINE_get_ciphers(e);
- if(!fn) goto skip_ciphers;
- n = fn(e, NULL, &nids, 0);
+ fn
_c
= ENGINE_get_ciphers(e);
+ if(!fn
_c
) goto skip_ciphers;
+ n = fn
_c
(e, NULL, &nids, 0);
for(k=0 ; k < n ; ++k)
if(!append_buf(&cap_buf,
OBJ_nid2sn(nids[k]),
for(k=0 ; k < n ; ++k)
if(!append_buf(&cap_buf,
OBJ_nid2sn(nids[k]),
@@
-461,6
+462,16
@@
skip_arg_loop:
goto end;
skip_ciphers:
goto end;
skip_ciphers:
+ fn_d = ENGINE_get_digests(e);
+ if(!fn_d) goto skip_digests;
+ n = fn_d(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_digests:
if (cap_buf && (*cap_buf != '\0'))
BIO_printf(bio_out, " [%s]", cap_buf);
if (cap_buf && (*cap_buf != '\0'))
BIO_printf(bio_out, " [%s]", cap_buf);