diff options
author | Ben Laurie <ben@links.org> | 2015-12-16 13:25:07 +0000 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2015-12-16 21:31:56 +0000 |
commit | a7a14a23a92a6accec3a39e979d377e1ddda2f75 (patch) | |
tree | 91797b3a453b82d05c9c9c6b86e1ba48c5bbb63e /apps | |
parent | 7644a9aef8932ed4d1c3f25ed776c997702982be (diff) | |
download | openssl-new-a7a14a23a92a6accec3a39e979d377e1ddda2f75.tar.gz |
Fix no-dgram.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index 84a640ef1a..de9644522e 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -257,9 +257,9 @@ static char *engine_id = NULL; #endif static const char *session_id_prefix = NULL; +#ifndef OPENSSL_NO_DTLS static int enable_timeouts = 0; static long socket_mtu; -#ifndef OPENSSL_NO_DTLS static int cert_chain = 0; #endif static int dtlslisten = 0; @@ -2028,7 +2028,7 @@ static int sv_body(char *hostname, int s, int stype, unsigned char *context) ret = -1; goto err; } - +#ifndef OPENSSL_NO_DTLS if (stype == SOCK_DGRAM) { sbio = BIO_new_dgram(s, BIO_NOCLOSE); @@ -2065,6 +2065,7 @@ static int sv_body(char *hostname, int s, int stype, unsigned char *context) /* turn on cookie exchange */ SSL_set_options(con, SSL_OP_COOKIE_EXCHANGE); } else +#endif sbio = BIO_new_socket(s, BIO_NOCLOSE); if (s_nbio_test) { |