0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00

Throw a fatal error if "secret" config file directive is used,

since static key mode is not supported.
This commit is contained in:
James Yonan 2013-02-06 01:40:00 +00:00
parent a5ed5918de
commit 7e03ddff3e

View File

@ -200,6 +200,10 @@ namespace openvpn {
if (cp->layer != Layer(Layer::OSI_LAYER_3))
throw ErrorCode(Error::TAP_NOT_SUPPORTED, true, "only OSI layer 3 tunnels currently supported");
// secret option not supported
if (opt.exists("secret"))
throw option_error("sorry, static key encryption mode (non-SSL/TLS) is not supported");
// fragment option not supported
if (opt.exists("fragment"))
throw option_error("sorry, 'fragment' directive is not supported, nor is connecting to a server that uses 'fragment' directive");