]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Allow ncp-disable and ncp-ciphers to be specified in ccd files
authorSteffan Karger <steffan@karger.me>
Mon, 25 Jul 2016 18:52:46 +0000 (20:52 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 25 Jul 2016 19:19:29 +0000 (21:19 +0200)
This allows the ncp-disable and ncp-ciphers options to be used in 'client
config dir' files, to disable or change the negotiable crypto parameter
settings for specific clients.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1469472766-25131-1-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/12096
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c

index 56479dc7aace943b96097af2011b52cf8b057246..3d4a6455d5f0ffd0d58c834811ebf814149059c3 100644 (file)
@@ -6677,12 +6677,12 @@ add_option (struct options *options,
     }
   else if (streq (p[0], "ncp-ciphers") && p[1] && !p[2])
     {
-      VERIFY_PERMISSION (OPT_P_GENERAL);
+      VERIFY_PERMISSION (OPT_P_GENERAL|OPT_P_INSTANCE);
       options->ncp_ciphers = p[1];
     }
   else if (streq (p[0], "ncp-disable") && !p[1])
     {
-      VERIFY_PERMISSION (OPT_P_GENERAL);
+      VERIFY_PERMISSION (OPT_P_GENERAL|OPT_P_INSTANCE);
       options->ncp_enabled = false;
     }
   else if (streq (p[0], "prng") && p[1] && !p[3])