]> 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>
Thu, 13 Feb 2020 19:48:30 +0000 (20:48 +0100)
commitaa6affe6df811db11577847366a569def0a3e314
treec92f23c61ddd2801ab14b31c1b89c6ba86747d9d
parent7b63984d51a2582ba2d406e46a7debb11df7f478
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>
src/openvpn/cryptoapi.c