Don't allow -www etc options with DTLS.
[openssl.git] / apps / s_server.c
index a399f5978fd435a5ac595f99814dc6e79641f518..e0ec5fa7006818f4f544313488b17716973d2cf0 100644 (file)
@@ -1524,6 +1524,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 !defined(OPENSSL_NO_JPAKE) && !defined(OPENSSL_NO_PSK)
        if (jpake_secret)