diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-11-18 03:24:32 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-11-18 03:24:32 +0000 |
commit | efab6dfceda9f836db2c76649c7742c9498fb399 (patch) | |
tree | c8189341210fdcdfb0a846e3086741afd4c99d11 /options.c | |
parent | Added server-side --opt-verify option: clients that connect (diff) | |
download | openvpn-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |