Apply Lutz Behnke's 56 bit cipher patch with a few
[openssl.git] / apps / ciphers.c
index 3c76782b7e3ad773084309f3c6c3013e36b96be1..f473f4c3dcec26c1af0a8fa689fa4f24bd5b224f 100644 (file)
@@ -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;