aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchangel_SDY <Archangel.SDY@gmail.com>2018-04-18 19:13:54 +0800
committerJay Satiro <raysatiro@yahoo.com>2018-04-23 03:16:49 -0400
commitab988caef66d75707fd43756906b9b9f42a89337 (patch)
treeb21366c1399f639ce61418483b924429e9d42c4e
parent10b195d3b06e2251a3a962363cf46d6af53258ce (diff)
schannel: fix build error on targets <= XP
- Use CRYPT_STRING_HEX instead of CRYPT_STRING_HEXRAW since XP doesn't support the latter. Ref: https://github.com/curl/curl/pull/2376#issuecomment-382153668 Closes https://github.com/curl/curl/pull/2504
-rw-r--r--lib/vtls/schannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 5387d8713..190ecca23 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -433,7 +433,7 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
cert_thumbprint.cbData = CERT_THUMBPRINT_DATA_LEN;
if(!CryptStringToBinary(cert_thumbprint_str, CERT_THUMBPRINT_STR_LEN,
- CRYPT_STRING_HEXRAW,
+ CRYPT_STRING_HEX,
cert_thumbprint_data, &cert_thumbprint.cbData,
NULL, NULL)) {
Curl_unicodefree(cert_path);