diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-11-30 17:48:08 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-11-30 17:48:08 +0300 |
commit | 632e13627f8ad4ebf632a8b616c62dc6622d375e (patch) | |
tree | 91654d26d1e76d8c677b0dec7be8059c0c1f86ef /src/greylist.h | |
parent | 2975827e40a8e7c6e820c42921fb8792cf637450 (diff) | |
download | rspamd-632e13627f8ad4ebf632a8b616c62dc6622d375e.tar.gz rspamd-632e13627f8ad4ebf632a8b616c62dc6622d375e.zip |
Check for SIGUSR1 by libevent to avoid signals collisions.
Remove greylist_storage as it was never used and is actually replaced with basic kvstorage.
Diffstat (limited to 'src/greylist.h')
-rw-r--r-- | src/greylist.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/greylist.h b/src/greylist.h deleted file mode 100644 index e113d2e94..000000000 --- a/src/greylist.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef RSPAMD_GREYLIST_H -#define RSPAMD_GREYLIST_H - -#include "config.h" - -#define CHECKSUM_SIZE 16 -/* 5 minutes */ -#define DEFAULT_GREYLIST_TIME 300 -/* 2 days */ -#define DEFAULT_EXPIRE_TIME 60 * 60 * 24 * 2 - -/** - * Item in storage - */ -struct rspamd_grey_item { - time_t age; /**< age of checksum */ - guint8 data[CHECKSUM_SIZE]; /**< checksum of triplet */ -}; - -/** - * Protocol command that is used to work with greylist storage - */ -struct rspamd_grey_command { - enum { - GREY_CMD_ADD = 0, - GREY_CMD_CHECK, - GREY_CMD_DEL - } cmd; - gint version; - guint8 data[CHECKSUM_SIZE]; -}; - -/** - * Reply packet - */ -struct rspamd_grey_reply { - enum { - GREY_OK = 0, - GREY_GREYLISTED, - GREY_EXPIRED, - GREY_NOT_FOUND, - GREY_ERR - } reply; -}; - -typedef void (*greylist_cb_t) (gboolean greylisted, struct worker_task *task, gpointer ud); - -#endif |