2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Remove support for the zone status bit, since the proposal no longer exists.

This commit is contained in:
Brian Wellington 2000-08-11 19:39:10 +00:00
parent efd2baaa2b
commit c7d63ae5a4

View File

@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dnssec-signzone.c,v 1.90 2000/08/10 22:08:23 bwelling Exp $ */ /* $Id: dnssec-signzone.c,v 1.91 2000/08/11 19:39:10 bwelling Exp $ */
#include <config.h> #include <config.h>
@ -57,8 +57,6 @@
const char *program = "dnssec-signzone"; const char *program = "dnssec-signzone";
int verbose; int verbose;
/*#define USE_ZONESTATUS*/
#define BUFSIZE 2048 #define BUFSIZE 2048
typedef struct signer_key_struct signer_key_t; typedef struct signer_key_struct signer_key_t;
@ -478,7 +476,6 @@ signset(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
} }
} }
#ifndef USE_ZONESTATUS
/* Determine if a KEY set contains a null key */ /* Determine if a KEY set contains a null key */
static isc_boolean_t static isc_boolean_t
hasnullkey(dns_rdataset_t *rdataset) { hasnullkey(dns_rdataset_t *rdataset) {
@ -506,7 +503,6 @@ hasnullkey(dns_rdataset_t *rdataset) {
fatal("failure looking for null keys"); fatal("failure looking for null keys");
return (ISC_FALSE); return (ISC_FALSE);
} }
#endif
/* /*
* Looks for signatures of the zone keys by the parent, and imports them * Looks for signatures of the zone keys by the parent, and imports them
@ -744,12 +740,10 @@ signname(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
case dns_rdatatype_nxt: case dns_rdatatype_nxt:
childkey = haschildkey(db, name); childkey = haschildkey(db, name);
break; break;
#ifndef USE_ZONESTATUS
case dns_rdatatype_key: case dns_rdatatype_key:
if (hasnullkey(&rdataset)) if (hasnullkey(&rdataset))
break; break;
goto skip; goto skip;
#endif
default: default:
goto skip; goto skip;
} }
@ -779,14 +773,6 @@ signname(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
dns_name_toregion(&nxtname, &r2); dns_name_toregion(&nxtname, &r2);
nxt_bits = r.base + r2.length; nxt_bits = r.base + r2.length;
set_bit(nxt_bits, dns_rdatatype_sig, 1); set_bit(nxt_bits, dns_rdatatype_sig, 1);
#ifdef USE_ZONESTATUS
if (isdelegation && childkey) {
set_bit(nxt_bits, dns_rdatatype_key, 1);
vbprintf(2, "found a child key for %s, "
"setting KEY bit in NXT\n",
nametostr(name));
}
#else
if (isdelegation && !childkey) { if (isdelegation && !childkey) {
dns_rdataset_t keyset; dns_rdataset_t keyset;
dns_rdatalist_t keyrdatalist; dns_rdatalist_t keyrdatalist;
@ -855,7 +841,6 @@ signname(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
nametostr(name)); nametostr(name));
} }
#endif
} }
signset(db, version, node, name, &rdataset); signset(db, version, node, name, &rdataset);