]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
crl: Fix compilation with OpenSSL 3.0
authorTobias Brunner <tobias@strongswan.org>
Thu, 30 Sep 2021 07:40:47 +0000 (09:40 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 30 Sep 2021 09:57:43 +0000 (11:57 +0200)
Closes strongswan/strongswan#635

src/libstrongswan/credentials/certificates/crl.h

index 224585fb26d2c43000e34a3272d3b3aef4b83324..94de44c441f731c2501cb16d673bb80b84acf007 100644 (file)
@@ -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