From: Viktor Szakats Date: Tue, 29 Jul 2025 18:07:06 +0000 (+0200) Subject: windows: drop `CRYPT_E_*` macro fallbacks, limit one to mingw32ce X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d413ed2d400dc5986e8725d2da6abb08f688b6ed;p=thirdparty%2Fcurl.git windows: drop `CRYPT_E_*` macro fallbacks, limit one to mingw32ce They are defined by all mingw-w64 versions and all supported MSVC versions (VS2008 and up). Also by OpenWatcom 2: https://github.com/open-watcom/open-watcom-v2/blob/ce6c37eb29f3fda95f9c4e8e37dee866b8c4e496/bld/w32api/include/winerror.mh mingw32ce misses `CRYPT_E_NOT_IN_REVOCATION_DATABASE`. Closes #18092 --- diff --git a/lib/curl_sspi.h b/lib/curl_sspi.h index 3f997876f4..a7bfd7e85d 100644 --- a/lib/curl_sspi.h +++ b/lib/curl_sspi.h @@ -328,25 +328,11 @@ extern PSecurityFunctionTable Curl_pSecFn; #define SEC_I_SIGNATURE_NEEDED ((HRESULT)0x0009035CL) #endif -#ifndef CRYPT_E_REVOKED -#define CRYPT_E_REVOKED ((HRESULT)0x80092010L) -#endif - -#ifndef CRYPT_E_NO_REVOCATION_DLL -#define CRYPT_E_NO_REVOCATION_DLL ((HRESULT)0x80092011L) -#endif - -#ifndef CRYPT_E_NO_REVOCATION_CHECK -#define CRYPT_E_NO_REVOCATION_CHECK ((HRESULT)0x80092012L) -#endif - -#ifndef CRYPT_E_REVOCATION_OFFLINE -#define CRYPT_E_REVOCATION_OFFLINE ((HRESULT)0x80092013L) -#endif - +#ifdef __MINGW32CE__ #ifndef CRYPT_E_NOT_IN_REVOCATION_DATABASE #define CRYPT_E_NOT_IN_REVOCATION_DATABASE ((HRESULT)0x80092014L) #endif +#endif /* __MINGW32CE__ */ #ifdef UNICODE # define SECFLAG_WINNT_AUTH_IDENTITY \