]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
windows: drop `CRYPT_E_*` macro fallbacks, limit one to mingw32ce
authorViktor Szakats <commit@vsz.me>
Tue, 29 Jul 2025 18:07:06 +0000 (20:07 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 30 Jul 2025 13:28:28 +0000 (15:28 +0200)
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

lib/curl_sspi.h

index 3f997876f42c934f7437bbd77d14f0f014acb747..a7bfd7e85deecacdeaa690f2760cf36c0521bbb7 100644 (file)
@@ -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 \