summaryrefslogtreecommitdiffstats
path: root/src/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Rework project structure, remove trash files.Vsevolod Stakhov2014-04-211-2275/+0
|
* Fix includes.Vsevolod Stakhov2014-04-211-8/+10
|
* Add more utilities for inet_addr.Vsevolod Stakhov2014-04-211-4/+54
|
* Implement unified accept function.Vsevolod Stakhov2014-04-211-35/+35
|
* Refactor memory pool naming.Vsevolod Stakhov2014-04-201-4/+4
|
* Move some rarely used includes from config.hVsevolod Stakhov2014-04-101-0/+7
|
* Use libottery for secure random numbers.Vsevolod Stakhov2014-02-041-55/+0
| | | | | | | | | | Libottery itself is hosted here: https://github.com/nmathewson/libottery This import is a rough adoptation of libottery to use it for secure random numbers in rspamd when needed (and in DNS resolver specifically). This import makes the internal chacha20 code useless, hence it is removed now.
* Use more clever time values to setup entropy.Vsevolod Stakhov2014-02-021-1/+12
|
* Fix GString expanding.Vsevolod Stakhov2014-01-291-1/+3
|
* Make gstring emitting generic.Vsevolod Stakhov2014-01-281-0/+76
|
* Parse HTTP requests, cleanup the code.Vsevolod Stakhov2014-01-181-23/+0
| | | | | --HG-- extra : rebase_source : 6b35fbf55fc9fe65d7f033620670bb210928e9b4
* Fix simultaneous bind to ipv6 and ipv6 sockets.Vsevolod Stakhov2014-01-091-0/+5
|
* Implement http server using http_parser.Vsevolod Stakhov2014-01-081-268/+0
|
* Validate IP addresses before pushing them to lua.Vsevolod Stakhov2014-01-061-0/+23
|
* Ouch.Vsevolod Stakhov2013-12-281-7/+3
|
* Use chacha20 for DNS id permutation.Vsevolod Stakhov2013-12-281-9/+34
|
* Fix some cases in unix socket creation.Vsevolod Stakhov2013-12-261-3/+5
|
* Fix reload of rspamd.Vsevolod Stakhov2013-12-251-22/+24
|
* Move PRNG seeding function to the util set.Vsevolod Stakhov2013-12-091-0/+29
|
* Use ucl variables.Vsevolod Stakhov2013-11-241-175/+0
|
* Check for libutil more strictly.Vsevolod Stakhov2013-11-201-1/+4
|
* Rework build and install paths.Vsevolod Stakhov2013-11-191-23/+64
|
* Expand path in file maps.Vsevolod Stakhov2013-11-131-0/+133
|
* Add the tolower variant of strlcpy function.Vsevolod Stakhov2013-08-231-0/+23
|
* Add ability to sign configs using rspamd.Vsevolod Stakhov2013-08-221-0/+112
|
* Fix a problem with listening on sockets.Vsevolod Stakhov2013-07-231-0/+3
| | | | Add stat_reset command to rspamc while I'm here.
* Allow listening on multiply addresses.Vsevolod Stakhov2013-07-201-7/+128
| | | | | | | 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-2/+268
|
* Allow restriction of update commands for fuzzy storage.Vsevolod Stakhov2013-06-041-0/+36
| | | | | | | | | 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.
* Fix UDP sockets creation.Vsevolod Stakhov2013-06-031-1/+1
|
* Correctly use ai_family for socket(2) call.Vsevolod Stakhov2013-06-031-1/+1
|
* Rework socket creation logic to support both ipv4 and ipv6 sockets.Vsevolod Stakhov2013-06-011-8/+8
|
* Use getaddrinfo when opening sockets.Vsevolod Stakhov2013-05-311-85/+82
|
* Copy hash table utility function.Vsevolod Stakhov2013-01-091-0/+54
| | | | Slight fix for /symbols handler.
* * Add rolling history feature saving last 200 scanned messages.Vsevolod Stakhov2013-01-071-2/+5
| | | | Add /history command handler in webui.
* * Use murmur hash for all hashes as it is more efficient and provides more ↵Vsevolod Stakhov2012-10-081-5/+213
| | | | | | uniform distribution as glib's default one. * Fix probability renormalization while using advanced classification.
* Another debian license fix.Vsevolod Stakhov2012-09-101-1/+1
| | | | | Add apache license for regexp that were delivered from SpamAssassin project. Fix debian/copyright for src/dns.c.
* Update copyright (required by debian).Vsevolod Stakhov2012-09-041-3/+3
|
* * Rework thread pools locking logic to avoid global lua mutex usage.Vsevolod Stakhov2012-08-221-1/+18
| | | | | | Fixed several memory leaks with modern glib. Fixed memory leak in dkim code. Fixed a problem with static global variables in shared libraries.
* When inserting a url to the tree also check phishing status to avoid masking ↵Vsevolod Stakhov2012-08-061-0/+4
| | | | of phished urls by innocent urls.
* Fix build on FreeBSD 9.1 and Current. Thanks to Anton Yuzjaninov for testing.Vsevolod Stakhov2012-07-261-0/+4
|
* Strict prototypes.Vsevolod Stakhov2012-06-051-2/+2
|
* * Split rspamd build to several independent libraries to reduce overhead.Vsevolod Stakhov2012-06-051-21/+0
|
* Add portable api for locks and threads to handle Glib threads API change.Vsevolod Stakhov2012-04-131-0/+189
|
* Separate librspamdserver API from plugins and workers functions.Vsevolod Stakhov2012-03-011-2/+2
| | | | Make tests compileable again.
* * Introduce new system of worker's and modules initialization:Vsevolod Stakhov2012-01-161-51/+23
| | | | | | | | - 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.
* Make compiler happy in several cases, remove warnings.Vsevolod Stakhov2011-12-201-1/+3
|
* Detect and use fallocate/posix_fallocate.Vsevolod Stakhov2011-12-141-0/+13
|
* Add another workaround for CentOS.Vsevolod Stakhov2011-12-141-0/+11
|
* Reorganize util.c as it should contain only common utilities.Vsevolod Stakhov2011-12-071-217/+2
| | | | Libkvstorage client is now deprecated as I plan to replace it with hiredis library.