Browse Source

Fix fuzzy storage constants

tags/1.0.7
Vsevolod Stakhov 8 years ago
parent
commit
16ce35fa19
2 changed files with 6 additions and 6 deletions
  1. 1
    1
      src/fuzzy_storage.c
  2. 5
    5
      src/fuzzy_storage.h

+ 1
- 1
src/fuzzy_storage.c View File

@@ -105,7 +105,7 @@ struct fuzzy_session {
guint64 time;
rspamd_inet_addr_t *addr;
struct rspamd_fuzzy_storage_ctx *ctx;
guchar nm[rspamd_cryptobox_NMBYTES];
guchar nm[rspamd_cryptobox_MAX_NMBYTES];
};

static gboolean

+ 5
- 5
src/fuzzy_storage.h View File

@@ -38,9 +38,9 @@ RSPAMD_PACKED(rspamd_fuzzy_reply) {
RSPAMD_PACKED(rspamd_fuzzy_encrypted_req_hdr) {
guchar magic[4];
guchar reserved[8];
guchar pubkey[rspamd_cryptobox_PKBYTES];
guchar nonce[rspamd_cryptobox_NONCEBYTES];
guchar mac[rspamd_cryptobox_MACBYTES];
guchar pubkey[32];
guchar nonce[rspamd_cryptobox_MAX_NONCEBYTES];
guchar mac[rspamd_cryptobox_MAX_MACBYTES];
};

RSPAMD_PACKED(rspamd_fuzzy_encrypted_cmd) {
@@ -54,8 +54,8 @@ RSPAMD_PACKED(rspamd_fuzzy_encrypted_shingle_cmd) {
};

RSPAMD_PACKED(rspamd_fuzzy_encrypted_rep_hdr) {
guchar nonce[rspamd_cryptobox_NONCEBYTES];
guchar mac[rspamd_cryptobox_MACBYTES];
guchar nonce[rspamd_cryptobox_MAX_NONCEBYTES];
guchar mac[rspamd_cryptobox_MAX_MACBYTES];
};

RSPAMD_PACKED(rspamd_fuzzy_encrypted_reply) {

Loading…
Cancel
Save