From 72e5b3b7022ad14b245565a5aadcd097106af168 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 30 Sep 2021 09:40:47 +0200 Subject: [PATCH] crl: Fix compilation with OpenSSL 3.0 Closes strongswan/strongswan#635 --- src/libstrongswan/credentials/certificates/crl.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libstrongswan/credentials/certificates/crl.h b/src/libstrongswan/credentials/certificates/crl.h index 224585fb2..94de44c44 100644 --- a/src/libstrongswan/credentials/certificates/crl.h +++ b/src/libstrongswan/credentials/certificates/crl.h @@ -28,9 +28,10 @@ typedef enum crl_reason_t crl_reason_t; #include #include -/* 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 +/* 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