From 018e57c74d9dc6b5676aead4be11cd28a8617ea4 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 22 Jan 2000 03:17:06 +0000 Subject: Apply Lutz Behnke's 56 bit cipher patch with a few minor changes. Docs haven't been added at this stage. They are probably best included in the 'ciphers' program docs. --- apps/ciphers.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/ciphers.c') diff --git a/apps/ciphers.c b/apps/ciphers.c index 3c76782b7e..f473f4c3dc 100644 --- a/apps/ciphers.c +++ b/apps/ciphers.c @@ -145,8 +145,12 @@ int MAIN(int argc, char **argv) ctx=SSL_CTX_new(meth); if (ctx == NULL) goto err; - if (ciphers != NULL) - SSL_CTX_set_cipher_list(ctx,ciphers); + if (ciphers != NULL) { + if(!SSL_CTX_set_cipher_list(ctx,ciphers)) { + BIO_printf(bio_err, "Error in cipher list\n"); + goto err; + } + } ssl=SSL_new(ctx); if (ssl == NULL) goto err; -- cgit v1.2.3