]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
schannel: drop fallbacks for 4 macros
authorViktor Szakats <commit@vsz.me>
Wed, 30 Jul 2025 02:58:14 +0000 (04:58 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 30 Jul 2025 10:24:37 +0000 (12:24 +0200)
They are defined by all mingw-w64 versions and all supported MSVC
versions (SDK 7.1A+).

Also by OpenWatcom 2:
https://github.com/open-watcom/open-watcom-v2/blob/ce6c37eb29f3fda95f9c4e8e37dee866b8c4e496/bld/w32api/include/wincrypt.mh

These aren't defined by mingw32ce. And likely defined by MS WinCE SDK,
but curl code doesn't use them in WinCE builds.

Closes #18093

lib/vtls/schannel_int.h

index 4927b9647bf5a046e75ae755c32202224824ba4f..d5ddee280c1bd5b631e260f17518dbd550283994 100644 (file)
 #define HAS_CLIENT_CERT_PATH
 #endif
 
-#ifndef CRYPT_DECODE_NOCOPY_FLAG
-#define CRYPT_DECODE_NOCOPY_FLAG 0x1
-#endif
-
-#ifndef CRYPT_DECODE_ALLOC_FLAG
-#define CRYPT_DECODE_ALLOC_FLAG 0x8000
-#endif
-
-#ifndef CERT_ALT_NAME_DNS_NAME
-#define CERT_ALT_NAME_DNS_NAME 3
-#endif
-
-#ifndef CERT_ALT_NAME_IP_ADDRESS
-#define CERT_ALT_NAME_IP_ADDRESS 8
-#endif
-
 #if defined(_MSC_VER) && (_MSC_VER <= 1600)
 /* Workaround for warning:
    'type cast' : conversion from 'int' to 'LPCSTR' of greater size */