mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-02-03 18:49:28 -05:00
EXPERIMENT: always generate DNSSEC keys with same keytag
This commit is contained in:
parent
8e1783391f
commit
f0f9ffd096
1 changed files with 3 additions and 3 deletions
|
|
@ -97,13 +97,13 @@ static bool keytag_in_use(kdnssec_ctx_t *ctx, uint16_t keytag)
|
|||
for (size_t i = 0; i < ctx->zone->num_keys; i++) {
|
||||
uint16_t used = dnssec_key_get_keytag(ctx->zone->keys[i].key);
|
||||
if (used == keytag) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (ctx->zone->num_keys > 0);
|
||||
}
|
||||
|
||||
#define GENERATE_KEYTAG_ATTEMPTS (20)
|
||||
#define GENERATE_KEYTAG_ATTEMPTS (2000000L)
|
||||
|
||||
static int generate_keytag_unconflict(kdnssec_ctx_t *ctx,
|
||||
kdnssec_generate_flags_t flags,
|
||||
|
|
|
|||
Loading…
Reference in a new issue