]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Support non-ASCII TAP adapter names on Windows
authorHeiko Hund <heiko.hund@sophos.com>
Tue, 15 Oct 2013 09:23:42 +0000 (11:23 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 23 Oct 2013 17:36:57 +0000 (19:36 +0200)
commitf2e40082349098d3c22981bf1e6d305826f1173f
treee5cfc81a7fc3027ee60091bbab6ce12a218f3473
parent30e358e5de352c8de04a955dc89f33e1710e9b97
Support non-ASCII TAP adapter names on Windows

Currently the TAP adapter name is fetched as an OEM string, which
is problematic if it contains non-ASCII characters and is to used
with netsh. The logfile also contains these non UTF-8 characters.

This patch fetches the name from the registry as UCS-2 and converts
it right into UTF-8 before it's used.

Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: Josh Cepek <josh.cepek@usa.net>
Message-Id: <1381829022-15244-1-git-send-email-heiko.hund@sophos.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7913
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c