X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=apps%2Fciphers.c;h=f473f4c3dcec26c1af0a8fa689fa4f24bd5b224f;hp=08e47be4f787563beaa947d9e922e968d7434f04;hb=018e57c74d9dc6b5676aead4be11cd28a8617ea4;hpb=f5d7a031a3c3e7b1700a67d6dc19daf3718ce6ee diff --git a/apps/ciphers.c b/apps/ciphers.c index 08e47be4f7..f473f4c3dc 100644 --- a/apps/ciphers.c +++ b/apps/ciphers.c @@ -66,10 +66,6 @@ #include #include -#if defined(NO_RSA) && !defined(NO_SSL2) -#define NO_SSL2 -#endif - #undef PROG #define PROG ciphers_main @@ -149,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;