From e32a6dc51005a9ee09db81a54428dd545239ff58 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 30 Jul 2025 04:58:14 +0200 Subject: [PATCH] schannel: drop fallbacks for 4 macros 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 | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/vtls/schannel_int.h b/lib/vtls/schannel_int.h index 4927b9647b..d5ddee280c 100644 --- a/lib/vtls/schannel_int.h +++ b/lib/vtls/schannel_int.h @@ -40,22 +40,6 @@ #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 */ -- 2.47.2