Apply Lutz Behnke's 56 bit cipher patch with a few
[openssl.git] / apps / ciphers.c
index b02b64b5dfb15ab8992f434ff9bd241fd7cfa4a8..f473f4c3dcec26c1af0a8fa689fa4f24bd5b224f 100644 (file)
@@ -63,8 +63,8 @@
 #define APPS_WIN16
 #endif
 #include "apps.h"
-#include "err.h"
-#include "ssl.h"
+#include <openssl/err.h>
+#include <openssl/ssl.h>
 
 #undef PROG
 #define PROG   ciphers_main
@@ -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;