mirror of
https://github.com/openssl/openssl.git
synced 2024-11-25 11:03:37 +08:00
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
This commit is contained in:
parent
6c0a1e2f8c
commit
199772e534
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user