diff options
author | Daniel Salzman <daniel.salzman@nic.cz> | 2024-11-02 19:35:23 +0100 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2024-11-02 19:43:57 +0100 |
commit | b24a6875f3360b3b2e0d7161e271409c1d95d441 (patch) | |
tree | 717d9962cc4f83c7c1fdeeaae715324cde19a73d | |
parent | distro/rpm: install softhsm for make check (diff) | |
download | knot-b24a6875f3360b3b2e0d7161e271409c1d95d441.tar.xz knot-b24a6875f3360b3b2e0d7161e271409c1d95d441.zip |
keymgr: don't check public-only key if it's missing
-rw-r--r-- | src/utils/keymgr/functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/keymgr/functions.c b/src/utils/keymgr/functions.c index 43348162a..1f0a89f47 100644 --- a/src/utils/keymgr/functions.c +++ b/src/utils/keymgr/functions.c @@ -994,7 +994,7 @@ static int key_sort(const void *a, const void *b) static bool key_missing(kdnssec_ctx_t *ctx, const knot_kasp_key_t *key) { - return DNSSEC_EOK != + return !key->is_pub_only && DNSSEC_EOK != dnssec_keystore_get_private(ctx->keystore, key->id, key->key); } |