aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
Commit message (Collapse)AuthorAgeFilesLines
* Use chacha20 for DNS id permutation.Vsevolod Stakhov2013-12-281-0/+7
|
* Rework rspamd DNS resolver.Vsevolod Stakhov2013-12-101-0/+11
|
* Move PRNG seeding function to the util set.Vsevolod Stakhov2013-12-091-10/+2
|
* Use ucl variables.Vsevolod Stakhov2013-11-241-1/+0
|
* Rework build and install paths.Vsevolod Stakhov2013-11-191-2/+5
|
* Expand path in file maps.Vsevolod Stakhov2013-11-131-0/+11
|
* Fix timeouts in map watch.Vsevolod Stakhov2013-10-261-0/+1
|
* Add the tolower variant of strlcpy function.Vsevolod Stakhov2013-08-231-1/+10
|
* Add ability to sign configs using rspamd.Vsevolod Stakhov2013-08-221-0/+10
|
* Allow listening on multiply addresses.Vsevolod Stakhov2013-07-201-1/+12
| | | | | | | Now rspamd can listen on multiply ipv4/ipv6 addresses. Removed legacy workers (lmtp, kvstorage) as they are never used in production. Try to unify workers initialization.
* Parse HTTP date in map requests.Vsevolod Stakhov2013-06-261-0/+8
|
* Update fuzzy storage in a separate thread.Vsevolod Stakhov2013-06-111-0/+10
|
* Allow restriction of update commands for fuzzy storage.Vsevolod Stakhov2013-06-041-0/+9
| | | | | | | | | Now it is possible to specify ip or networks from which fuzzy updates or removes are possible. Rework sockets logic while I'm here. Create universal utility for parsing ipv4/mask strings.
* Rework socket creation logic to support both ipv4 and ipv6 sockets.Vsevolod Stakhov2013-06-011-2/+3
|
* Use getaddrinfo when opening sockets.Vsevolod Stakhov2013-05-311-2/+2
|
* Copy hash table utility function.Vsevolod Stakhov2013-01-091-0/+21
| | | | Slight fix for /symbols handler.
* * Add rolling history feature saving last 200 scanned messages.Vsevolod Stakhov2013-01-071-2/+2
| | | | Add /history command handler in webui.
* * Use murmur hash for all hashes as it is more efficient and provides more ↵Vsevolod Stakhov2012-10-081-0/+42
| | | | | | uniform distribution as glib's default one. * Fix probability renormalization while using advanced classification.
* * Rework thread pools locking logic to avoid global lua mutex usage.Vsevolod Stakhov2012-08-221-0/+12
| | | | | | Fixed several memory leaks with modern glib. Fixed memory leak in dkim code. Fixed a problem with static global variables in shared libraries.
* Strict prototypes.Vsevolod Stakhov2012-06-051-2/+2
|
* * Split rspamd build to several independent libraries to reduce overhead.Vsevolod Stakhov2012-06-051-1/+1
|
* Add portable api for locks and threads to handle Glib threads API change.Vsevolod Stakhov2012-04-131-0/+78
|
* * Introduce new system of worker's and modules initialization:Vsevolod Stakhov2012-01-161-30/+7
| | | | | | | | - Removed legacy limitation of worker's types; - Using GQuarks to identify workers and modules; - Remove modules.sh script; - Add a common system of workers and modules; - Write management and configuration for new architecture.
* Detect and use fallocate/posix_fallocate.Vsevolod Stakhov2011-12-141-0/+9
|
* Add another workaround for CentOS.Vsevolod Stakhov2011-12-141-1/+4
|
* Reorganize util.c as it should contain only common utilities.Vsevolod Stakhov2011-12-071-23/+4
| | | | Libkvstorage client is now deprecated as I plan to replace it with hiredis library.
* Check for SIGUSR1 by libevent to avoid signals collisions.Vsevolod Stakhov2011-11-301-1/+0
| | | | Remove greylist_storage as it was never used and is actually replaced with basic kvstorage.
* * Add incr and decr commands to kvstorage.Vsevolod Stakhov2011-11-101-0/+10
| | | | * Add integers detection inside kvstorage.
* * Initial implementation of threaded kvstorage worker.Vsevolod Stakhov2011-10-271-0/+1
|
* Fix siginfo detection code.Vsevolod Stakhov2011-10-241-1/+1
|
* * Implement kvstorage synced APIVsevolod Stakhov2011-10-241-0/+1
|
* Add universal utility function for creating stream sockets.Vsevolod Stakhov2011-10-181-1/+12
|
* Add make_socketpair utility function.Vsevolod Stakhov2011-10-131-0/+5
|
* Try to check spf domain before adding it to LRU hash.Vsevolod Stakhov2011-10-061-6/+12
| | | | Make libutil functions ported from BSD compatible with libbsd in linux.
* * Add start script for red hat compatible systemsVsevolod Stakhov2011-07-201-12/+75
| | | | | | | Add descriptions for some rspamd API functions (no functional changes). --HG-- rename : linux/rspamd => linux/rspamd_debian.in
* * First commit to implement multi-statfile filter system with new learning ↵Vsevolod Stakhov2011-07-121-0/+3
| | | | mechanizm (untested yet)
* * Add api for creating XML-rpc callsVsevolod Stakhov2011-06-091-10/+0
|
* * Strip email addresses from bracesVsevolod Stakhov2011-05-131-0/+6
| | | | Ignore empty domains in settings
* * Rework build process:Vsevolod Stakhov2011-05-101-32/+16
| | | | | | | | | | - add librspamdserver - link this library to all daemons and utils of rspamd - use subdirectories more often * Rework global variables logic - move them to the main process * Fix logging to handle utf-8 correctly * Add statshow utility and make it working * Move printf functions to separate source file
* * Add more timeouts: for fuzzy operations, for worker task operationsVsevolod Stakhov2011-03-281-0/+5
| | | | Handle miliseconds using a common macro.
* * Start new rspamd 0.3.4Vsevolod Stakhov2010-12-031-0/+30
| | | | * Add ability to manage per-module, per-worker and per-classifier options in XML parser
* Make own strlcpy that does not calculate remaining string length (faster and ↵Vsevolod Stakhov2010-11-161-0/+23
| | | | | | more safe) Allow only ASCII symbols in logs, escape control chars
* Urgent fixes.Vsevolod Stakhov2010-11-031-1/+1
|
* Add compatibility with glib < 2.2.22Vsevolod Stakhov2010-10-281-0/+3
| | | | Fix user in start script
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-32/+58
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Fix detection of numeric urls (reported by citrin)Vsevolod Stakhov2010-07-051-1/+1
| | | | * Write real time of message's scan to log (not only virtual)
* * Fix compatibility issuesVsevolod Stakhov2010-06-231-1/+1
|
* * Rewrite buffered input for line policy (again)Vsevolod Stakhov2010-06-221-0/+4
| | | | | | | | * Fix issue with links that are ip addresses in numeric form in surbl * On Darwin use BSD style sendfile definition * Reorganize platform specific knobs in CMakeLists * Use gettimeofday on systems that have not clock_getres * Use ftime for dns trans id generation on systems without clock_getres
* * New logic of SURBL module:Vsevolod Stakhov2010-06-181-0/+2
| | | | | | | | | | | | | - remove completely 2tld - add option "exception" - for domains from exception list check (level + 1) parts of url: If we have url mail.some.com.ru and have com.ru in exception list then we would check some.com.ru. If we have some.com.ru in exceptions list them mail.some.com.ru would be checked and so on. - optimized parsing of surbl requests * Use system mkstemp(3) on systems where it is available as glib implementation has poor security and generate rather predictable temporary file names.
* * Introduce new logging system:Vsevolod Stakhov2009-12-221-8/+0
| | | | | | | | | - independent and customizeable buffering - line buffering - errors handling support - custom (ip based) debug - append function name automaticaly (based on __FUNCTION__) - add some logic to logs system