]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove DLV from dns_client API and lib/samples
authorEvan Hunt <each@isc.org>
Wed, 7 Aug 2019 18:51:13 +0000 (11:51 -0700)
committerEvan Hunt <each@isc.org>
Fri, 9 Aug 2019 16:18:02 +0000 (09:18 -0700)
lib/dns/client.c
lib/dns/include/dns/client.h
lib/dns/win32/libdns.def.in
lib/samples/Makefile-postinstall.in

index 8e765d989f1d37519ff136262c36e55e583ecc7e..96d45093bbd541d6c5141bccbffe7a8d8aa440e3 100644 (file)
@@ -706,46 +706,6 @@ dns_client_clearservers(dns_client_t *client, dns_rdataclass_t rdclass,
        return (result);
 }
 
-isc_result_t
-dns_client_setdlv(dns_client_t *client, dns_rdataclass_t rdclass,
-                 const char *dlvname)
-{
-       isc_result_t result;
-       isc_buffer_t b;
-       dns_view_t *view = NULL;
-
-       REQUIRE(DNS_CLIENT_VALID(client));
-
-       LOCK(&client->lock);
-       result = dns_viewlist_find(&client->viewlist, DNS_CLIENTVIEW_NAME,
-                                  rdclass, &view);
-       UNLOCK(&client->lock);
-       if (result != ISC_R_SUCCESS)
-               goto cleanup;
-
-       if (dlvname == NULL)
-               view->dlv = NULL;
-       else {
-               dns_name_t *newdlv;
-
-               isc_buffer_constinit(&b, dlvname, strlen(dlvname));
-               isc_buffer_add(&b, strlen(dlvname));
-               newdlv = dns_fixedname_name(&view->dlv_fixed);
-               result = dns_name_fromtext(newdlv, &b, dns_rootname,
-                                          DNS_NAME_DOWNCASE, NULL);
-               if (result != ISC_R_SUCCESS)
-                       goto cleanup;
-
-               view->dlv = dns_fixedname_name(&view->dlv_fixed);
-       }
-
- cleanup:
-       if (view != NULL)
-               dns_view_detach(&view);
-
-       return (result);
-}
-
 static isc_result_t
 getrdataset(isc_mem_t *mctx, dns_rdataset_t **rdatasetp) {
        dns_rdataset_t *rdataset;
index b0ed77c97eddf46e74de7838db949dfdce65cb2a..d661e2deba65da8a137f1c37985beb5a504750b8 100644 (file)
@@ -271,26 +271,6 @@ dns_client_clearservers(dns_client_t *client, dns_rdataclass_t rdclass,
  *\li  Anything else                           Failure.
  */
 
-isc_result_t
-dns_client_setdlv(dns_client_t *client, dns_rdataclass_t rdclass,
-                 const char *dlvname);
-/*%<
- * Specify a name to use for DNSSEC lookaside validation.
- * If a trusted key has been added for that name, then DLV will be
- * used during validation.  If 'dlvname' is NULL, then DLV will no
- * longer be used for this client.
- *
- * Requires:
- *
- *\li  'client' is a valid client.
- *
- * Returns:
- *
- *\li  #ISC_R_SUCCESS                          On success.
- *
- *\li  Anything else                           Failure.
- */
-
 isc_result_t
 dns_client_resolve(dns_client_t *client, const dns_name_t *name,
                   dns_rdataclass_t rdclass, dns_rdatatype_t type,
index d1733f49a8a1577f21cef72bd25e66debbd58e2b..f0645696c0ace159b19900e4dd6ba673712cdd5b 100644 (file)
@@ -147,7 +147,6 @@ dns_client_freeupdate
 dns_client_mctx
 dns_client_request
 dns_client_resolve
-dns_client_setdlv
 dns_client_setservers
 dns_client_startrequest
 dns_client_startresolve
index 8992ced646e2b05c06f6208cae624d022c594f02..f87f4c93d9ed2c3d4ee1c80201ac86f90f30dfa6 100644 (file)
@@ -24,14 +24,13 @@ LIBS =              ${DNSLIBS} ${ISCCFGLIBS} ${ISCLIBS} @LIBS@
 SUBDIRS =
 
 TARGETS =      sample@EXEEXT@ sample-async@EXEEXT@ sample-gai@EXEEXT@ \
-               sample-update@EXEEXT@ sample-request@EXEEXT@ nsprobe@EXEEXT@ \
-               dlvchecks@EXEEXT@
+               sample-update@EXEEXT@ sample-request@EXEEXT@ nsprobe@EXEEXT@
 
 OBJS =         sample.@O@ sample-async.@O@ sample-gai.@O@ sample-update.@O@ \
-               sample-request.@O@ nsprobe.@O@ dlvchecks.@O@
+               sample-request.@O@ nsprobe.@O@
 
 SRCS =         sample.c sample-async.c sample-gai.c sample-update.c \
-               sample-request.c nsprobe.c dlvchecks..c
+               sample-request.c nsprobe.c
 
 @BIND9_MAKE_RULES@
 
@@ -63,9 +62,5 @@ nsprobe@EXEEXT@: nsprobe.@O@ ${DEPLIBS}
        ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
        nsprobe.@O@ ${LIBS}
 
-dlvchecks@EXEEXT@: dlvchecks.@O@ ${DEPLIBS}
-       ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
-       dlvchecks.@O@ ${LIBS}
-
 clean distclean maintainer-clean::
        rm -f ${TARGETS}