aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/schannel_verify.c
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2020-01-13 18:25:12 -0500
committerJay Satiro <raysatiro@yahoo.com>2020-01-13 18:25:12 -0500
commit16da8bcd7141497b86b1098a9c874ac417ac6f82 (patch)
tree4f5e6c6235e3c06ae76264bac1f0483ecb741327 /lib/vtls/schannel_verify.c
parent9d1a0922b7b1eadd0f36167641f78d24a819b62d (diff)
schannel_verify: Fix alt names manual verify for UNICODE builds
Follow-up to 29e40a6 from two days ago, which added that feature for Windows 7 and earlier. The bug only occurred in same. Ref: https://github.com/curl/curl/pull/4761
Diffstat (limited to 'lib/vtls/schannel_verify.c')
-rw-r--r--lib/vtls/schannel_verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/schannel_verify.c b/lib/vtls/schannel_verify.c
index 791bc0bb0..e75132cad 100644
--- a/lib/vtls/schannel_verify.c
+++ b/lib/vtls/schannel_verify.c
@@ -313,7 +313,7 @@ static DWORD cert_get_name_string(struct Curl_easy *data,
CERT_ALT_NAME_INFO *alt_name_info = NULL;
DWORD alt_name_info_size = 0;
BOOL ret_val = FALSE;
- char *current_pos = NULL;
+ LPTSTR current_pos = NULL;
DWORD i;
/* CERT_NAME_SEARCH_ALL_NAMES_FLAG is available from Windows 8 onwards. */