summaryrefslogtreecommitdiff
path: root/apps/s_server.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-07-15 12:22:49 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-07-15 12:32:41 +0100
commit199772e53427ca921c289471c1344d454781fcc0 (patch)
tree68826ea3e95b5c65c9909d3e4bfbd2fa80eea72e /apps/s_server.c
parent6c0a1e2f8c5efc3dd4a8d4722465721034b55d92 (diff)
downloadopenssl-new-199772e53427ca921c289471c1344d454781fcc0.tar.gz
Don't allow -www etc options with DTLS.
The options which emulate a web server don't make sense when doing DTLS. Exit with an error if an attempt is made to use them. PR#3453
Diffstat (limited to 'apps/s_server.c')
-rw-r--r--apps/s_server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index 9d1a1fa87c..639bb90c59 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -1532,6 +1532,14 @@ bad:
sv_usage();
goto end;
}
+#ifndef OPENSSL_NO_DTLS1
+ if (www && socket_type == SOCK_DGRAM)
+ {
+ BIO_printf(bio_err,
+ "Can't use -HTTP, -www or -WWW with DTLS\n");
+ goto end;
+ }
+#endif
if (unix_path && (socket_type != SOCK_STREAM))
{