From efab6dfceda9f836db2c76649c7742c9498fb399 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 18 Nov 2008 03:24:32 +0000 Subject: 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 --- options.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options.c') 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) -- cgit