Browse code

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

james authored on 2009/10/17 01:31:01
Showing 1 changed files
... ...
@@ -4468,6 +4468,11 @@ add_option (struct options *options,
4468 4468
 	{
4469 4469
 	  options->sockflags |= SF_HOST_RANDOMIZE;
4470 4470
 	}
4471
+      else if (streq (p[1], "GENERIC_CONFIG"))
4472
+	{
4473
+	  msg (msglevel, "this is a generic configuration and cannot directly be used");
4474
+	  goto err;
4475
+	}
4471 4476
 #if P2MP
4472 4477
       else if (streq (p[1], "SERVER_POLL_TIMEOUT") && p[2])
4473 4478
 	{