summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Salzman <daniel.salzman@nic.cz>2024-11-02 19:35:23 +0100
committerDaniel Salzman <daniel.salzman@nic.cz>2024-11-02 19:43:57 +0100
commitb24a6875f3360b3b2e0d7161e271409c1d95d441 (patch)
tree717d9962cc4f83c7c1fdeeaae715324cde19a73d
parentdistro/rpm: install softhsm for make check (diff)
downloadknot-b24a6875f3360b3b2e0d7161e271409c1d95d441.tar.xz
knot-b24a6875f3360b3b2e0d7161e271409c1d95d441.zip
keymgr: don't check public-only key if it's missing
-rw-r--r--src/utils/keymgr/functions.c2
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);
}