]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Support UTF-8 --client-config-dir
authorHeiko Hund <heiko.hund@sophos.com>
Mon, 29 Oct 2012 13:16:37 +0000 (14:16 +0100)
committerDavid Sommerseth <davids@redhat.com>
Mon, 29 Oct 2012 14:38:45 +0000 (15:38 +0100)
commit9885f57e3ac8d2e32ba20ca84f6bdd0a1a995eac
treea86f8373e5a50cfbc5ce1a477f0ce45a43515bc4
parentae303d444c11984b87e0046c4138982d7a41fd8b
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>
src/openvpn/buffer.c
src/openvpn/buffer.h
src/openvpn/misc.c