[Swan-dev] [PATCH] pluto: ub_resolve_event api changed in 1.8.0 accodomate the change

Antony Antony antony at phenome.org
Wed Apr 17 18:46:33 UTC 2019


diff --git a/programs/pluto/ikev2_ipseckey.c b/programs/pluto/ikev2_ipseckey.c
index 138c96e57..5420e6ffa 100644
--- a/programs/pluto/ikev2_ipseckey.c
+++ b/programs/pluto/ikev2_ipseckey.c
@@ -684,8 +684,14 @@ static void idi_ipseckey_fetch_continue(struct p_dns_req *dnsr)
 	}
 }
 
+#if !defined(UNBOUND_VERSION_MAJOR) || (UNBOUND_VERSION_MAJOR == 1 && UNBOUND_VERSION_MINOR > 8)
+static void ipseckey_ub_cb(void* mydata, int rcode,
+		void *wire, int wire_len, int secure, char* why_bogus,
+		int was_ratelimited UNUSED)
+#else
 static void ipseckey_ub_cb(void* mydata, int rcode,
 		void *wire, int wire_len, int secure, char* why_bogus)
+#endif
 {
 	struct p_dns_req *dnsr = (struct p_dns_req *)mydata;
 	ldns_lookup_table *rcode_txt;


More information about the Swan-dev mailing list