dnssec-signzone.c revision ae83dbc8817912ebce47559b1010e2c3b7715715
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#define is_zone_key(key) ((dst_key_flags(key) & DNS_KEYFLAG_OWNERMASK) \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntstatic inline void
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Huntstatic inline void
b4d8192d210290112e07b0e22b491c45c50ba696Evan Huntset_bit(unsigned char *array, unsigned int index, unsigned int bit) {
9c03f13e18c1b0c32f62391a17300378605bbc7bEvan Huntsign_with_key(dns_name_t *name, dns_rdataset_t *rdataset, dns_rdata_t *rdata,
9c03f13e18c1b0c32f62391a17300378605bbc7bEvan Hunt dns_rdatalist_t *sigrdatalist, isc_stdtime_t *now,
5a75f61dd413720c16d229b24ebba6bd6ecdb738Evan Hunt isc_buffer_init(&b, r.base, r.length, ISC_BUFFERTYPE_BINARY);
5a75f61dd413720c16d229b24ebba6bd6ecdb738Evan Hunt result = dns_dnssec_sign(name, rdataset, key, now, later,
5a75f61dd413720c16d229b24ebba6bd6ecdb738Evan Hunt result = dns_dnssec_verify(name, rdataset, key, mctx, rdata);
de52784e45e3a7a92c0d8ad843eb4db313bbfd97Mark Andrews ISC_LIST_APPEND(sigrdatalist->rdata, rdata, link);
af850c4120c5bee9462de4def85d0b4c1b583963Mark Andrewsgenerate_sig(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
af850c4120c5bee9462de4def85d0b4c1b583963Mark Andrews dns_name_t *name, dst_key_t **keys, isc_boolean_t *defaultkey,
4e8fe357a619ae2b789b15df7e3d6abf782b4a71Evan Hunt result = dns_db_allrdatasets(db, node, version, 0, &rdsiter);
80fa3ef8517ff046a72c4cb1e785f30c9ef9ee75Mark Andrews dns_name_compare(name, dns_db_origin(db)) == 0))
unsigned char *nxt_bits;
if (!alreadysigned) {
for (i = 0; i < nkeys; i++) {
if (!defaultkey[i])
sizeof(array[i]));
mctx);
for (i = 0; i < nkeys; i++) {
if (i == nkeys) {
sizeof(array[i]));
static inline isc_boolean_t
if (!active)
if (!active) {
return (active);
static inline isc_result_t
if (!active) {
return (result);
char *origintext;
isc_buffer_t b;
unsigned int nkeys = 0;
for (i = 0; i < nkeys; i++)
&nextnode);
nkeys);
for (i = 0; i < nkeys; i++)
argc--;
argv++;
for (i = 0; i < argc; i++)