diff options
author | Ben Laurie <ben@openssl.org> | 2001-08-18 10:22:54 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2001-08-18 10:22:54 +0000 |
commit | 354c3ace73db6eafa235b6db948060a2ab82bb7b (patch) | |
tree | 8f639d86aa2966760e9ce75f8cfb3b930e9ee926 /apps/engine.c | |
parent | 52129c0b0b55a556e19aea1b5f5e79d10f664a36 (diff) | |
download | openssl-354c3ace73db6eafa235b6db948060a2ab82bb7b.tar.gz |
Add first cut symmetric crypto support.
Diffstat (limited to 'apps/engine.c')
-rw-r--r-- | apps/engine.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/engine.c b/apps/engine.c index 1308b6b7f1..1b2fc50cc2 100644 --- a/apps/engine.c +++ b/apps/engine.c @@ -94,7 +94,7 @@ static void identity(void *ptr) return; } -static int append_buf(char **buf, char *s, int *size, int step) +static int append_buf(char **buf, const char *s, int *size, int step) { int l = strlen(s); @@ -430,6 +430,7 @@ skip_arg_loop: { int cap_size = 256; char *cap_buf = NULL; + int k,n; if (ENGINE_get_RSA(e) != NULL && !append_buf(&cap_buf, "RSA", @@ -448,6 +449,13 @@ skip_arg_loop: &cap_size, 256)) goto end; + n=ENGINE_cipher_num(e); + for(k=0 ; k < n ; ++k) + if(!append_buf(&cap_buf, + OBJ_nid2sn(ENGINE_get_cipher(e, k)->nid), + &cap_size, 256)) + goto end; + if (cap_buf && (*cap_buf != '\0')) BIO_printf(bio_out, " [%s]", cap_buf); |