]> granicus.if.org Git - curl/commitdiff
schannel: fix build error on targets <= XP
authorArchangel_SDY <Archangel.SDY@gmail.com>
Wed, 18 Apr 2018 11:13:54 +0000 (19:13 +0800)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 23 Apr 2018 07:16:49 +0000 (03:16 -0400)
- 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

lib/vtls/schannel.c

index 5387d8713ab056183bf58bca6439425675274962..190ecca23510989b3ae20bd525563c4419c40813 100644 (file)
@@ -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);