diff options
author | Heiko Hund | 2012-10-29 14:16:37 +0100 |
---|---|---|
committer | David Sommerseth | 2012-10-29 15:38:45 +0100 |
commit | 9885f57e3ac8d2e32ba20ca84f6bdd0a1a995eac (patch) | |
tree | a86f8373e5a50cfbc5ce1a477f0ce45a43515bc4 /src/openvpn/buffer.h | |
parent | ae303d444c11984b87e0046c4138982d7a41fd8b (diff) | |
download | openvpn-9885f57e3ac8d2e32ba20ca84f6bdd0a1a995eac.zip openvpn-9885f57e3ac8d2e32ba20ca84f6bdd0a1a995eac.tar.gz |
Support UTF-8 --client-config-dir
If a common name (or user name, when used in conjunction with
--username-as-common-name) contains UTF-8 encoded characters their
octets get replaced by underscores. This becomes problematic when
user "Müller" and "Möller" need to have a CCD file and both would
receive options from the file "M__ller". The situation is even
worse for non-latin alphabets, where CCD file names consist of
underscores entirely.
This patch removes that limitation and also allows the file names
to contain any punctuation characters besided the resevered ones.
Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: David Sommerseth <davids@redhat.com>
Message-Id: 1351516597-11128-1-git-send-email-heiko.hund@sophos.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/7110
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/buffer.h')
-rw-r--r-- | src/openvpn/buffer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openvpn/buffer.h b/src/openvpn/buffer.h index 9bc33db..5e11de0 100644 --- a/src/openvpn/buffer.h +++ b/src/openvpn/buffer.h @@ -736,6 +736,11 @@ const char *np (const char *str); #define CC_REVERSE_QUOTE (1<<23) #define CC_AT (1<<24) #define CC_EQUAL (1<<25) +#define CC_LESS_THAN (1<<26) +#define CC_GREATER_THAN (1<<27) +#define CC_PIPE (1<<28) +#define CC_QUESTION_MARK (1<<29) +#define CC_ASTERISK (1<<30) /* macro classes */ #define CC_NAME (CC_ALNUM|CC_UNDERBAR) |