1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-17 23:15:08 -05:00

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
This commit is contained in:
Jay Satiro 2020-01-13 18:25:12 -05:00
parent 9d1a0922b7
commit 16da8bcd71

View File

@ -313,7 +313,7 @@ static DWORD cert_get_name_string(struct Curl_easy *data,
CERT_ALT_NAME_INFO *alt_name_info = NULL; CERT_ALT_NAME_INFO *alt_name_info = NULL;
DWORD alt_name_info_size = 0; DWORD alt_name_info_size = 0;
BOOL ret_val = FALSE; BOOL ret_val = FALSE;
char *current_pos = NULL; LPTSTR current_pos = NULL;
DWORD i; DWORD i;
/* CERT_NAME_SEARCH_ALL_NAMES_FLAG is available from Windows 8 onwards. */ /* CERT_NAME_SEARCH_ALL_NAMES_FLAG is available from Windows 8 onwards. */