]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Minor options check fix: --no-name-remapping is a
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Tue, 18 Nov 2008 03:24:32 +0000 (03:24 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Tue, 18 Nov 2008 03:24:32 +0000 (03:24 +0000)
server-only option and should therefore generate an
error when used on the client.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3506 e7ae566f-a301-0410-adde-c780ea21d3b5

options.c

index 2bb5fc2083bc14ad0817cee545e2dce4b2bd0d06..33234c5b5a530ac61f92bb1d2a467ecb54a77c2d 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1760,6 +1760,8 @@ options_postprocess_verify_ce (const struct options *options, const struct conne
        msg (M_USAGE, "--username-as-common-name requires --mode server");
       if (options->ssl_flags & SSLF_AUTH_USER_PASS_OPTIONAL)
        msg (M_USAGE, "--auth-user-pass-optional requires --mode server");
+      if (options->ssl_flags & SSLF_NO_NAME_REMAPPING)
+       msg (M_USAGE, "--no-name-remapping requires --mode server");
       if (options->ssl_flags & SSLF_OPT_VERIFY)
        msg (M_USAGE, "--opt-verify requires --mode server");
       if (options->auth_user_pass_verify_script)