diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-10-31 07:04:51 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-10-31 07:04:51 +0000 |
commit | ed3042470f498fbf1468d3d757982a19df38b3bd (patch) | |
tree | 4c1a6bc48634f1dccddc6bd27cad0b5a390378c6 /options.c | |
parent | Added --status-version 3 which is the same as version 2 (diff) | |
download | openvpn-ed3042470f498fbf1468d3d757982a19df38b3bd.tar.xz |
Added --no-name-remapping option to allow Common Name, X509 Subject,
and username strings to include any printable character including
space, but excluding control characters such as tab, newline, and
carriage-return.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3467 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r-- | options.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -383,6 +383,8 @@ static const char usage_message[] = " user/pass via temporary file.\n" "--auth-user-pass-optional : Allow connections by clients that don't\n" " specify a username/password.\n" + "--no-name-remapping : Allow Common Name and X509 Subject to include\n" + " any printable character.\n" "--client-to-client : Internally route client-to-client traffic.\n" "--duplicate-cn : Allow multiple clients with the same common name to\n" " concurrently connect.\n" @@ -4576,6 +4578,11 @@ add_option (struct options *options, VERIFY_PERMISSION (OPT_P_GENERAL); options->ssl_flags |= SSLF_AUTH_USER_PASS_OPTIONAL; } + else if (streq (p[0], "no-name-remapping")) + { + VERIFY_PERMISSION (OPT_P_GENERAL); + options->ssl_flags |= SSLF_NO_NAME_REMAPPING; + } else if (streq (p[0], "auth-user-pass-verify") && p[1]) { VERIFY_PERMISSION (OPT_P_SCRIPT); |