Lines Matching defs:keydata
44 #include <dns/keydata.h>
487 #define DNS_ZONEFLG_REFRESHING 0x04000000U /*%< Refreshing keydata */
3728 * of the set (current timer, keydata->refresh, keydata->addhd,
3729 * keydata->removehd).
3776 dns_rdata_keydata_t keydata;
3809 CHECK(dns_keydata_fromdnskey(&keydata, &dnskey, now, 0, 0,
3817 &keydata, &keyb));
3825 set_refreshkeytimer(zone, &keydata, now, ISC_TRUE);
3954 dns_rdata_keydata_t keydata;
3969 /* Now insert all the accepted trust anchors from this keydata set. */
3976 /* Convert rdata to keydata. */
3977 result = dns_rdata_tostruct(&rdata, &keydata, NULL);
3983 set_refreshkeytimer(zone, &keydata, now, ISC_TRUE);
3986 if (keydata.removehd != 0) {
3995 if (now < keydata.addhd) {
4000 /* Convert keydata to dnskey. */
4001 dns_keydata_todnskey(&keydata, &dnskey, NULL);
8770 dns_rdata_keydata_t keydata;
8786 result = dns_rdata_tostruct(rr, &keydata, NULL);
8790 dns_keydata_todnskey(&keydata, &dnskey, NULL);
8841 * Calculate the refresh interval for a keydata zone, per
8920 dns_rdata_keydata_t keydata;
8939 result = dns_rdata_tostruct(&rdata, &keydata, NULL);
8944 keydata.refresh = refresh_time(kfetch, ISC_TRUE);
8945 set_refreshkeytimer(zone, &keydata, now, ISC_FALSE);
8951 &keydata, &keyb));
8963 * Verify that DNSKEY set is signed by the key specified in 'keydata'.
8966 revocable(dns_keyfetch_t *kfetch, dns_rdata_keydata_t *keydata) {
8979 REQUIRE(kfetch != NULL && keydata != NULL);
8985 /* Generate a key from keydata */
8987 dns_keydata_todnskey(keydata, &dnskey, NULL);
8988 dns_rdata_fromstruct(&rr, keydata->common.rdclass,
9053 dns_rdata_keydata_t keydata;
9227 result = dns_rdata_tostruct(&keydatarr, &keydata, NULL);
9230 dns_keydata_todnskey(&keydata, &dnskey, NULL);
9235 * If any keydata record has a nonzero add holddown, then
9240 initializing = initializing && ISC_TF(keydata.addhd == 0);
9246 if (keydata.removehd != 0 &&
9247 keydata.removehd <= now) {
9250 } else if (keydata.addhd == 0) {
9252 } else if (keydata.addhd > now) {
9258 if (keydata.addhd < now + dns_zone_mkey_month)
9259 keydata.addhd =
9261 keydata.refresh = refresh_time(kfetch,
9263 } else if (keydata.removehd == 0) {
9268 keydata.refresh = now + dns_zone_mkey_hour;
9269 } else if (keydata.removehd <= now) {
9277 keydata.refresh = refresh_time(kfetch,
9295 &keydata, &keyb);
9302 set_refreshkeytimer(zone, &keydata, now, ISC_FALSE);
9350 result = dns_rdata_tostruct(&keydatarr, &keydata, NULL);
9353 if (revoked && revocable(kfetch, &keydata)) {
9354 if (keydata.addhd > now) {
9367 } else if (keydata.removehd == 0) {
9375 if (keydata.addhd == 0)
9378 keydata.removehd = now +
9380 keydata.flags |=
9389 } else if (keydata.removehd < now) {
9401 } else if (revoked && keydata.removehd == 0) {
9409 if (keydata.removehd != 0) {
9419 keydata.removehd = 0;
9420 keydata.addhd =
9429 } else if (keydata.addhd > now)
9431 else if (keydata.addhd == 0)
9432 keydata.addhd = now;
9434 if (keydata.addhd <= now) {
9443 } else if (keydata.addhd > now) {
9449 keydata.addhd = now + dns_zone_mkey_month;
9504 keydata.refresh = refresh_time(kfetch, ISC_FALSE);
9509 &keydata, &keyb);
9519 dns_keydata_fromdnskey(&keydata, &dnskey, 0, 0, 0,
9521 keydata.addhd = initializing
9523 keydata.refresh = refresh_time(kfetch, ISC_FALSE);
9528 &keydata, &keyb);
9545 set_refreshkeytimer(zone, &keydata, now, ISC_FALSE);
9555 * see if there's pending keydata. If so, we put a null key in