aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-10-16 16:31:01 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-10-16 16:31:01 +0000
commit0f9c77b7d94338c6691eb59e80adb459afd364e0 (patch)
tree67452efe1c6c748a17fd31401320863070d08994
parentFixed issue where some .svn directories were being inadvertently (diff)
downloadopenvpn-0f9c77b7d94338c6691eb59e80adb459afd364e0.tar.xz
Added "setenv GENERIC_CONFIG" directive, for generic configs
that cannot directly be used as a config file. The directive will simply cause OpenVPN to exit with an error if a generic config file is used. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5077 e7ae566f-a301-0410-adde-c780ea21d3b5
-rw-r--r--options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/options.c b/options.c
index acbb036..183c21a 100644
--- a/options.c
+++ b/options.c
@@ -4468,6 +4468,11 @@ add_option (struct options *options,
{
options->sockflags |= SF_HOST_RANDOMIZE;
}
+ else if (streq (p[1], "GENERIC_CONFIG"))
+ {
+ msg (msglevel, "this is a generic configuration and cannot directly be used");
+ goto err;
+ }
#if P2MP
else if (streq (p[1], "SERVER_POLL_TIMEOUT") && p[2])
{