#201 Add compatibility with BIND 9.16.10 API change
Merged 3 months ago by abbra. Opened 3 months ago by pemensik.
pemensik/bind-dyndb-ldap bind-9.16.10-support  into  master

file modified
+7
@@ -1792,10 +1792,17 @@ 

  			  dns_rdatatype_nsec3param, origin, nsec3p_str,

  			  &nsec3p_rdata));

  	CHECK(dns_rdata_tostruct(nsec3p_rdata, &nsec3p_rr, NULL));

+ #if LIBDNS_VERSION_MAJOR > 1609

+ 	CHECK(dns_zone_setnsec3param(secure, nsec3p_rr.hash, nsec3p_rr.flags,

+ 				     nsec3p_rr.iterations,

+ 				     nsec3p_rr.salt_length, nsec3p_rr.salt,

+ 				     true, false));

+ #else

  	CHECK(dns_zone_setnsec3param(secure, nsec3p_rr.hash, nsec3p_rr.flags,

  				     nsec3p_rr.iterations,

  				     nsec3p_rr.salt_length, nsec3p_rr.salt,

  				     true));

+ #endif

  

  cleanup:

  	if (nsec3p_rdata != NULL) {

One parameter was added to function used internally by plugin. Nothing
like -nsec3param auto is supported by LDAP plugin. It is safe to set
resalt false always. Salt can be changed via LDAP, but has to be
specified manually.

Pull-Request has been merged by abbra

3 months ago
Metadata