Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/bind bind 8.2.2-P7
details: https://anonhg.NetBSD.org/src/rev/78fd2e10d838
branches: trunk
changeset: 499070:78fd2e10d838
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Nov 10 09:33:54 2000 +0000
description:
bind 8.2.2-P7
diffstat:
dist/bind/LICENSE_RSA | 43 +++++++++++++++++++++++++++
dist/bind/README | 2 +-
dist/bind/bin/named/ns_defs.h | 6 +-
dist/bind/bin/named/ns_notify.c | 23 +++++++++++++-
dist/bind/bin/named/ns_parser.h | 7 +++-
dist/bind/bin/named/ns_req.c | 63 ++++++++++++++++++++++-----------------
dist/bind/include/arpa/nameser.h | 7 +++-
dist/bind/lib/dst/bsafe_link.c | 4 +-
dist/bind/lib/dst/cylink_link.c | 4 +-
dist/bind/lib/dst/eay_dss_link.c | 4 +-
dist/bind/lib/dst/hmac_link.c | 4 +-
dist/bind/lib/dst/prandom.c | 4 +-
dist/bind/lib/dst/rsaref_link.c | 4 +-
dist/bind/lib/dst/support.c | 4 +-
dist/bind/lib/nameser/ns_name.c | 21 ++++++++++++-
dist/bind/lib/resolv/res_debug.c | 33 +++++++++++++++++---
16 files changed, 173 insertions(+), 60 deletions(-)
diffs (truncated from 652 to 300 lines):
diff -r 08b554292493 -r 78fd2e10d838 dist/bind/LICENSE_RSA
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/bind/LICENSE_RSA Fri Nov 10 09:33:54 2000 +0000
@@ -0,0 +1,43 @@
+ DNSSAFE LICENSE TERMS
+
+This BIND software includes the DNSsafe software from RSA Data
+Security, Inc., which is copyrighted software that can only be
+distributed under the terms of this license agreement.
+
+The DNSsafe software cannot be used or distributed separately from the
+BIND software. You only have the right to use it or distribute it as
+a bundled, integrated product.
+
+The DNSsafe software can ONLY be used to provide authentication for
+resource records in the Domain Name System, as specified in RFC 2065
+and successors. You cannot modify the BIND software to use the
+DNSsafe software for other purposes, or to make its cryptographic
+functions available to end-users for other uses.
+
+If you modify the DNSsafe software itself, you cannot modify its
+documented API, and you must grant RSA Data Security the right to use,
+modify, and distribute your modifications, including the right to use
+any patents or other intellectual property that your modifications
+depend upon.
+
+You must not remove, alter, or destroy any of RSA's copyright notices
+or license information. When distributing the software to the Federal
+Government, it must be licensed to them as "commercial computer
+software" protected under 48 CFR 12.212 of the FAR, or 48 CFR
+227.7202.1 of the DFARS.
+
+You must not violate United States export control laws by distributing
+the DNSsafe software or information about it, when such distribution
+is prohibited by law.
+
+THE DNSSAFE SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY
+WHATSOEVER. RSA HAS NO OBLIGATION TO SUPPORT, CORRECT, UPDATE OR
+MAINTAIN THE RSA SOFTWARE. RSA DISCLAIMS ALL WARRANTIES, EXPRESS,
+IMPLIED OR STATUTORY, AS TO ANY MATTER WHATSOEVER, INCLUDING ALL
+IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY RIGHTS.
+
+If you desire to use DNSsafe in ways that these terms do not permit,
+please contact RSA Data Security, Inc., 100 Marine Parkway, Redwood
+City, California 94065, USA, to discuss alternate licensing
+arrangements.
diff -r 08b554292493 -r 78fd2e10d838 dist/bind/README
--- a/dist/bind/README Fri Nov 10 09:23:42 2000 +0000
+++ b/dist/bind/README Fri Nov 10 09:33:54 2000 +0000
@@ -1,4 +1,4 @@
-This is the source portion of BIND version 8.2.2, Patchlevel 5. Its
+This is the source portion of BIND version 8.2.2, Patchlevel 7. Its
companions are "doc" and "contrib" so you are probably not missing anything.
See the CHANGES file for a detailed listing of all changes. See the INSTALL
diff -r 08b554292493 -r 78fd2e10d838 dist/bind/bin/named/ns_defs.h
--- a/dist/bind/bin/named/ns_defs.h Fri Nov 10 09:23:42 2000 +0000
+++ b/dist/bind/bin/named/ns_defs.h Fri Nov 10 09:33:54 2000 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: ns_defs.h,v 1.1.1.1 1999/11/20 18:53:59 veego Exp $ */
+/* $NetBSD: ns_defs.h,v 1.1.1.2 2000/11/10 09:34:13 itojun Exp $ */
/*
* from ns.h 4.33 (Berkeley) 8/23/90
- * Id: ns_defs.h,v 8.89 1999/10/07 08:24:08 vixie Exp
+ * Id: ns_defs.h,v 8.89.2.1 2000/11/09 04:01:21 marka Exp
*/
/*
@@ -604,7 +604,7 @@
#define STREAM_CONNECT_EV 0x08
#define STREAM_DONE_CLOSE 0x10
#define STREAM_AXFR 0x20
-#define STREAM_AXFRIXFR 0x22
+#define STREAM_AXFRIXFR 0x40
#define ALLOW_NETS 0x0001
#define ALLOW_HOSTS 0x0002
diff -r 08b554292493 -r 78fd2e10d838 dist/bind/bin/named/ns_notify.c
--- a/dist/bind/bin/named/ns_notify.c Fri Nov 10 09:23:42 2000 +0000
+++ b/dist/bind/bin/named/ns_notify.c Fri Nov 10 09:33:54 2000 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: ns_notify.c,v 1.1.1.1 1999/11/20 18:54:00 veego Exp $ */
+/* $NetBSD: ns_notify.c,v 1.1.1.2 2000/11/10 09:34:19 itojun Exp $ */
#if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "Id: ns_notify.c,v 8.4 1999/10/15 19:49:04 vixie Exp";
+static const char rcsid[] = "Id: ns_notify.c,v 8.5 1999/11/16 06:01:39 vixie Exp";
#endif /* not lint */
/*
@@ -80,6 +80,7 @@
/* Local. */
static LIST(struct notify) pending_notifies;
+static LIST(struct notify) loading_notifies;
/* Public. */
@@ -125,6 +126,11 @@
ni->type = type;
evInitID(&ni->timer);
+ if (loading != 0) {
+ APPEND(loading_notifies, ni, link);
+ return;
+ }
+
/* Delay notification for from five seconds up to fifteen minutes. */
max_delay = MIN(nzones/5, 895);
max_delay = MAX(max_delay, 25);
@@ -148,6 +154,19 @@
ni, zp, delay);
}
+void
+notify_afterload() {
+ struct notify *ni;
+
+ INSIST(loading == 0);
+ while ((ni = HEAD(loading_notifies)) != NULL) {
+ UNLINK(loading_notifies, ni, link);
+ ns_notify(ni->name, ni->class, ni->type);
+ freestr(ni->name);
+ memput(ni, sizeof *ni);
+ }
+}
+
/*
* ns_unnotify()
* call this when all pending notifies are now considered junque.
diff -r 08b554292493 -r 78fd2e10d838 dist/bind/bin/named/ns_parser.h
--- a/dist/bind/bin/named/ns_parser.h Fri Nov 10 09:23:42 2000 +0000
+++ b/dist/bind/bin/named/ns_parser.h Fri Nov 10 09:33:54 2000 +0000
@@ -1,6 +1,9 @@
-/* $NetBSD: ns_parser.h,v 1.1.1.1 1999/11/20 18:54:01 veego Exp $ */
+/* $NetBSD: ns_parser.h,v 1.1.1.2 2000/11/10 09:34:27 itojun Exp $ */
-#define YYEMPTY (-1)
+#ifndef YYERRCODE
+#define YYERRCODE 256
+#endif
+
#define L_EOS 257
#define L_IPADDR 258
#define L_NUMBER 259
diff -r 08b554292493 -r 78fd2e10d838 dist/bind/bin/named/ns_req.c
--- a/dist/bind/bin/named/ns_req.c Fri Nov 10 09:23:42 2000 +0000
+++ b/dist/bind/bin/named/ns_req.c Fri Nov 10 09:33:54 2000 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: ns_req.c,v 1.1.1.1 1999/11/20 18:54:00 veego Exp $ */
+/* $NetBSD: ns_req.c,v 1.1.1.2 2000/11/10 09:34:22 itojun Exp $ */
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)ns_req.c 4.47 (Berkeley) 7/1/91";
-static const char rcsid[] = "Id: ns_req.c,v 8.104 1999/10/15 19:49:04 vixie Exp";
+static const char rcsid[] = "Id: ns_req.c,v 8.104.2.2 2000/11/09 23:15:29 vixie Exp";
#endif /* not lint */
/*
@@ -1115,7 +1115,7 @@
if (qsp == NULL)
return (Finish);
else {
- if (!ixfr_found) {
+ if (!ixfr_found && type == ns_t_ixfr) {
qsp->flags |= STREAM_AXFRIXFR;
hp->qdcount = htons(1);
}
@@ -1593,11 +1593,11 @@
}
#endif
if ((n = dn_comp(name, buf, buflen, comp_ptrs, edp)) < 0)
- return (-1);
+ goto cleanup;
cp = buf + n;
buflen -= n;
if (buflen < 0)
- return (-1);
+ goto cleanup;
PUTSHORT((u_int16_t)type, cp);
PUTSHORT((u_int16_t)dp->d_class, cp);
PUTLONG(ttl, cp);
@@ -1610,7 +1610,7 @@
case T_PTR:
n = dn_comp((char *)dp->d_data, cp, buflen, comp_ptrs, edp);
if (n < 0)
- return (-1);
+ goto cleanup;
PUTSHORT((u_int16_t)n, sp);
cp += n;
break;
@@ -1620,7 +1620,7 @@
/* Store domain name in answer */
n = dn_comp((char *)dp->d_data, cp, buflen, comp_ptrs, edp);
if (n < 0)
- return (-1);
+ goto cleanup;
PUTSHORT((u_int16_t)n, sp);
cp += n;
if (doadd) {
@@ -1636,15 +1636,15 @@
cp1 = dp->d_data;
n = dn_comp((char *)cp1, cp, buflen, comp_ptrs, edp);
if (n < 0)
- return (-1);
+ goto cleanup;
cp += n;
buflen -= type == T_SOA ? n + 5 * INT32SZ : n;
if (buflen < 0)
- return (-1);
+ goto cleanup;
cp1 += strlen((char *)cp1) + 1;
n = dn_comp((char *)cp1, cp, buflen, comp_ptrs, edp);
if (n < 0)
- return (-1);
+ goto cleanup;
cp += n;
if (type == T_SOA) {
cp1 += strlen((char *)cp1) + 1;
@@ -1672,7 +1672,7 @@
/* copy order */
buflen -= INT16SZ;
if (buflen < 0)
- return (-1);
+ goto cleanup;
memcpy(cp, cp1, INT16SZ);
cp += INT16SZ;
cp1 += INT16SZ;
@@ -1682,7 +1682,7 @@
/* copy preference */
buflen -= INT16SZ;
if (buflen < 0)
- return (-1);
+ goto cleanup;
memcpy(cp, cp1, INT16SZ);
cp += INT16SZ;
cp1 += INT16SZ;
@@ -1694,7 +1694,7 @@
ns_debug(ns_log_default, 1, "size of n at flags = %d", n);
buflen -= n + 1;
if (buflen < 0)
- return (-1);
+ goto cleanup;
*cp++ = n;
memcpy(cp, cp1, n);
cp += n;
@@ -1706,7 +1706,7 @@
n = *cp1++;
buflen -= n + 1;
if (buflen < 0)
- return (-1);
+ goto cleanup;
*cp++ = n;
memcpy(cp, cp1, n);
cp += n;
@@ -1718,7 +1718,7 @@
n = *cp1++;
buflen -= n + 1;
if (buflen < 0)
- return (-1);
+ goto cleanup;
*cp++ = n;
memcpy(cp, cp1, n);
cp += n;
@@ -1731,7 +1731,7 @@
n = dn_comp((char *)cp1, cp, buflen, dnptrs, edp);
ns_debug(ns_log_default, 1, "dn_comp's n = %u", n);
if (n < 0)
- return (-1);
+ goto cleanup;
cp += n;
/* save data length */
@@ -1749,7 +1749,7 @@
cp1 = dp->d_data;
if ((buflen -= INT16SZ) < 0)
- return (-1);
+ goto cleanup;
/* copy preference */
memcpy(cp, cp1, INT16SZ);
@@ -1759,7 +1759,7 @@
if (type == T_SRV) {
buflen -= INT16SZ*2;
if (buflen < 0)
- return (-1);
+ goto cleanup;
memcpy(cp, cp1, INT16SZ*2);
cp += INT16SZ*2;
cp1 += INT16SZ*2;
@@ -1769,7 +1769,7 @@
(type == ns_t_mx) ? comp_ptrs : NULL,
(type == ns_t_mx) ? edp : NULL);
if (n < 0)
- return (-1);
+ goto cleanup;
cp += n;
Home |
Main Index |
Thread Index |
Old Index