crl: Undefine <wincrypt.h>'s CRL_REASON_* and use our enum values instead

This commit is contained in:
Martin Willi
2014-06-03 12:24:34 +02:00
parent 43c5388470
commit 40a924090e
@@ -28,6 +28,18 @@ typedef enum crl_reason_t crl_reason_t;
#include <library.h> #include <library.h>
#include <credentials/certificates/certificate.h> #include <credentials/certificates/certificate.h>
/* <wincrypt.h> comes with CRL_REASON clashing with ours. Even if the values
* are identical, we undef them here to use our enum instead of defines. */
#ifdef WIN32
# undef CRL_REASON_UNSPECIFIED
# undef CRL_REASON_KEY_COMPROMISE
# undef CRL_REASON_CA_COMPROMISE
# undef CRL_REASON_AFFILIATION_CHANGED
# undef CRL_REASON_SUPERSEDED
# undef CRL_REASON_CERTIFICATE_HOLD
# undef CRL_REASON_REMOVE_FROM_CRL
#endif
/** /**
* RFC 2459 CRL reason codes * RFC 2459 CRL reason codes
*/ */