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 (cherry picked from commit 58a2aaeade8bdecd0f9f0df41927f7cff3012547)
This commit is contained in:
parent
2054eb771e
commit
cd63f94d4d
@ -1362,6 +1362,14 @@ bad:
|
|||||||
sv_usage();
|
sv_usage();
|
||||||
goto end;
|
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 !defined(OPENSSL_NO_JPAKE) && !defined(OPENSSL_NO_PSK)
|
||||||
if (jpake_secret)
|
if (jpake_secret)
|
||||||
|
Loading…
Reference in New Issue
Block a user