enum rspamd_fuzzy_epoch ret = RSPAMD_FUZZY_EPOCH_MAX;
switch (cmd->version) {
- case 4:
- if (cmd->shingles_count > 0) {
- if (r == sizeof (struct rspamd_fuzzy_shingle_cmd)) {
- ret = RSPAMD_FUZZY_EPOCH11;
- }
- }
- else {
- if (r == sizeof (*cmd)) {
- ret = RSPAMD_FUZZY_EPOCH11;
- }
- }
- break;
case 3:
if (cmd->shingles_count > 0) {
if (r == sizeof (struct rspamd_fuzzy_shingle_cmd)) {
#include "shingles.h"
#include "cryptobox.h"
-#define RSPAMD_FUZZY_VERSION 4
+#define RSPAMD_FUZZY_VERSION 3
#define RSPAMD_FUZZY_KEYLEN 8
/* Commands for fuzzy storage */
RSPAMD_FUZZY_EPOCH8, /**< 0.8 till 0.9 */
RSPAMD_FUZZY_EPOCH9, /**< 0.9 + */
RSPAMD_FUZZY_EPOCH10, /**< 1.0+ encryption */
- RSPAMD_FUZZY_EPOCH11, /**< 1.3+ multiple flags */
RSPAMD_FUZZY_EPOCH_MAX
};
#define DEFAULT_RETRANSMITS 3
#define DEFAULT_PORT 11335
-/*
- * WARNING:
- * As 1.3 is not yet stable, we want to keep compatibility here as 1.2 won't
- * recognize version 4 unless 1.2.7
- */
-#define RSPAMD_FUZZY_PLUGIN_VERSION 3
+#define RSPAMD_FUZZY_PLUGIN_VERSION RSPAMD_FUZZY_VERSION
static const gint rspamd_fuzzy_hash_len = 5;