]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Allow unicode search string in --cryptoapicert option
authorSelva Nair <selva.nair@gmail.com>
Wed, 12 Feb 2020 15:06:07 +0000 (10:06 -0500)
committerGert Doering <gert@greenie.muc.de>
Wed, 15 Apr 2020 19:03:57 +0000 (21:03 +0200)
commit5f8a9df1eea33c2d6fc267e5e3683449954c986b
tree46ca5bc0ba8e59856be072fee37b7258c62ecda7
parent4658b3b6f6008eea1819ea26a46fd46df87b1030
Allow unicode search string in --cryptoapicert option

Currently when the certificate is specified as "SUBJ:foo", the
string foo is assumed to be ascii. Change that and interpret
it as utf-8, convert to a wide string, and flag it as unicode
in CertFindCertifcateInStore().

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <1581519967-16950-2-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19405.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit aa6affe6df811db11577847366a569def0a3e314)
src/openvpn/cryptoapi.c