Blame SOURCES/libreswan-4.2-openssl3.patch

83b7d5
diff -up ./programs/pluto/ikev2_ipseckey.c.openssl3 ./programs/pluto/ikev2_ipseckey.c
83b7d5
--- ./programs/pluto/ikev2_ipseckey.c.openssl3	2021-02-03 02:36:01.000000000 +0100
83b7d5
+++ ./programs/pluto/ikev2_ipseckey.c	2021-06-24 17:55:04.863636517 +0200
83b7d5
@@ -25,13 +25,25 @@
83b7d5
 #include <arpa/nameser.h>
83b7d5
 #include <ldns/ldns.h>	/* from ldns-devel */
83b7d5
 #include <ldns/rr.h>
83b7d5
+/*
83b7d5
+ * avoid name clash between OpenSSL headers (included through
83b7d5
+ * <ldns/ldns.h>) and NSS headers (included below through <pk11pub.h>)
83b7d5
+ */
83b7d5
+#undef KU_DIGITAL_SIGNATURE
83b7d5
+#undef KU_NON_REPUDIATION
83b7d5
+#undef KU_KEY_ENCIPHERMENT
83b7d5
+#undef KU_DATA_ENCIPHERMENT
83b7d5
+#undef KU_KEY_AGREEMENT
83b7d5
+#undef KU_KEY_CERT_SIGN
83b7d5
+#undef KU_CRL_SIGN
83b7d5
+#undef KU_ENCIPHER_ONLY
83b7d5
 #include <unbound.h>
83b7d5
 #include "unbound-event.h"
83b7d5
 #include "defs.h"
83b7d5
 #include "log.h"
83b7d5
+#include "state.h"
83b7d5
 #include "constants.h"	/* for demux.h */
83b7d5
 #include "demux.h"	/* to get struct msg_digest */
83b7d5
-#include "state.h"
83b7d5
 #include "connections.h"
83b7d5
 #include "dnssec.h"	/* includes unbound.h */
83b7d5
 #include "id.h"
83b7d5
diff -up ./programs/pluto/ikev2_rsa.c.openssl3 ./programs/pluto/ikev2_rsa.c