crl: Fix compilation with OpenSSL 3.0

Closes strongswan/strongswan#635
This commit is contained in:
Tobias Brunner
2021-09-30 11:57:43 +02:00
parent 2fbbd05ec5
commit 72e5b3b702
@@ -28,9 +28,10 @@ typedef enum crl_reason_t crl_reason_t;
#include <library.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
/* <wincrypt.h> comes with CRL_REASON clashing with ours. The same is true for
* OpenSSL 3.0. Even if the values are identical, we undef them here to use our
* enum instead of defines. */
#ifdef CRL_REASON_UNSPECIFIED
# undef CRL_REASON_UNSPECIFIED
# undef CRL_REASON_KEY_COMPROMISE
# undef CRL_REASON_CA_COMPROMISE