aboutsummaryrefslogtreecommitdiffstats
path: root/apps/s_server.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-01-23 02:28:08 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-01-23 02:28:08 +0000
commitfabce04122b1e6a208577c06927b25595d5b5613 (patch)
tree078434f8ee89519b445ab28c058a959b4799d500 /apps/s_server.c
parent64287002ce4de3c8954a8bc9ccf6e82df695b69f (diff)
downloadopenssl-fabce04122b1e6a208577c06927b25595d5b5613.tar.gz
Make s_server, s_client check cipher list return codes.
Update docs.
Diffstat (limited to 'apps/s_server.c')
-rw-r--r--apps/s_server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index ff0354acc8..bbb651b6ea 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -697,7 +697,11 @@ bad:
#endif
if (cipher != NULL)
- SSL_CTX_set_cipher_list(ctx,cipher);
+ if(!SSL_CTX_set_cipher_list(ctx,cipher)) {
+ BIO_printf(bio_err,"error seting cipher list\n");
+ ERR_print_errors(bio_err);
+ goto end;
+ }
SSL_CTX_set_verify(ctx,s_server_verify,verify_callback);
SSL_CTX_set_session_id_context(ctx,(void*)&s_server_session_id_context,
sizeof s_server_session_id_context);