mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
3632. [bug] Signature from newly inactive keys were not being
removed. [RT #32178]
This commit is contained in:
@@ -1354,10 +1354,27 @@ get_key_struct(dns_name_t *name, unsigned int alg,
|
||||
key->times[i] = 0;
|
||||
key->timeset[i] = ISC_FALSE;
|
||||
}
|
||||
key->inactive = ISC_FALSE;
|
||||
key->magic = KEY_MAGIC;
|
||||
return (key);
|
||||
}
|
||||
|
||||
isc_boolean_t
|
||||
dst_key_inactive(const dst_key_t *key) {
|
||||
|
||||
REQUIRE(VALID_KEY(key));
|
||||
|
||||
return (key->inactive);
|
||||
}
|
||||
|
||||
void
|
||||
dst_key_setinactive(dst_key_t *key, isc_boolean_t inactive) {
|
||||
|
||||
REQUIRE(VALID_KEY(key));
|
||||
|
||||
key->inactive = inactive;
|
||||
}
|
||||
|
||||
/*%
|
||||
* Reads a public key from disk
|
||||
*/
|
||||
|
Reference in New Issue
Block a user