aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-09-21 14:59:12 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-09-21 14:59:12 +0100
commit11e50a9f8219382b766c3ed5a217eb50bdafa89d (patch)
tree7954834fb7137468b919253419fb2003e74a3188 /src/fuzzy_storage.c
parent4ccd25c56d4875d8f719bd3487aec27c7f8ae31c (diff)
downloadrspamd-11e50a9f8219382b766c3ed5a217eb50bdafa89d.tar.gz
rspamd-11e50a9f8219382b766c3ed5a217eb50bdafa89d.zip
[Rework] Allow more flexible keypair encodingvstakhov-keypair-encoding
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 841d040b2..3064d45a0 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -2453,7 +2453,8 @@ rspamd_fuzzy_key_stat_iter(const unsigned char *pk_iter, struct fuzzy_key *fuzzy
ucl_object_insert_key(elt, flags_ucl, "flags", 0, false);
ucl_object_insert_key(elt,
- rspamd_keypair_to_ucl(fuzzy_key->key, RSPAMD_KEYPAIR_DUMP_NO_SECRET | RSPAMD_KEYPAIR_DUMP_FLATTENED),
+ rspamd_keypair_to_ucl(fuzzy_key->key, RSPAMD_KEYPAIR_ENCODING_DEFAULT,
+ RSPAMD_KEYPAIR_DUMP_NO_SECRET | RSPAMD_KEYPAIR_DUMP_FLATTENED),
"keypair", 0, false);
ucl_object_insert_key(keys_obj, elt, keyname, 0, true);
}