aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-11-18 03:24:32 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-11-18 03:24:32 +0000
commitefab6dfceda9f836db2c76649c7742c9498fb399 (patch)
treec8189341210fdcdfb0a846e3086741afd4c99d11 /options.c
parentAdded server-side --opt-verify option: clients that connect (diff)
downloadopenvpn-efab6dfceda9f836db2c76649c7742c9498fb399.tar.xz
Minor options check fix: --no-name-remapping is a
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
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options.c b/options.c
index 2bb5fc2..33234c5 100644
--- 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)