aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-13 22:27:23 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-13 23:03:42 +0000
commit53159e16429a7f41c8cf3980c3d8c4b3552cf100 (patch)
tree1d15e1d1cd1c54b846e2a1fb898c25e980481e2d /src/fuzzy_storage.h
parent6ccf1c9ec4d0d68397e308fffbdb4a050f6f64ea (diff)
downloadrspamd-53159e16429a7f41c8cf3980c3d8c4b3552cf100.tar.gz
rspamd-53159e16429a7f41c8cf3980c3d8c4b3552cf100.zip
Add support for multiple keys per fuzzy storage
Diffstat (limited to 'src/fuzzy_storage.h')
-rw-r--r--src/fuzzy_storage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fuzzy_storage.h b/src/fuzzy_storage.h
index 8cb586aed..f3a6f0f9c 100644
--- a/src/fuzzy_storage.h
+++ b/src/fuzzy_storage.h
@@ -7,6 +7,7 @@
#include "cryptobox.h"
#define RSPAMD_FUZZY_VERSION 3
+#define RSPAMD_FUZZY_KEYLEN 8
/* Commands for fuzzy storage */
#define FUZZY_CHECK 0
@@ -37,7 +38,7 @@ RSPAMD_PACKED(rspamd_fuzzy_reply) {
RSPAMD_PACKED(rspamd_fuzzy_encrypted_req_hdr) {
guchar magic[4];
- guchar key_id[8];
+ guchar key_id[RSPAMD_FUZZY_KEYLEN];
guchar pubkey[32];
guchar nonce[rspamd_cryptobox_MAX_NONCEBYTES];
guchar mac[rspamd_cryptobox_MAX_MACBYTES];