5f08b0309190ec818d46bfe0e497468b30714a93 |
|
29-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Rename timing API to stats-dist API
The API wasn't really about timings specifically, but about statistics in
general. The new stats service was already using it for tracking statistics
for non-timing related numbers. |
918384d458981e7db4aadc283212eb19912d5709 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add event filter
This currently supports matching events by:
* name
* source file:line
* categories
* key=value fields |
b8a1347a9ea2cecf0d16f24748c2600fea8c7158 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add event API
The events are hierarchical and the child events inherit the parents'
fields. The events will be attached to "objects", which gives them some
context. For example each mail user, mailbox and mail will have its own
event. The events can also have a log prefix, so logging events to e.g.
mail will always log a consistent prefix that identifies which mail is
being logged about.
The events will also be used for statistics. Typically this is done by
logging a debug event, which contains fields that are interesting for
statistics. The interesting events will have a name, which can be used
to identify them when configuring which statistics are wanted to be
tracked. It's possible to also track events that have no name, but that
requires using the source code's filename:line as the event name. That
of course may change between releases, so it's not very reliable. |
44d29bbfa14662dc1b2873f1a570a0767f827cd1 |
|
30-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add bloom filter support |
f6de86ea29e87fba001b6231d38a4c51e8a5c543 |
|
30-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add murmurhash3 support
Needed for bloom filters |
8734467f39c1d36050380f07a408860404d60996 |
|
24-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
mempool-allocfree: Add linked-list malloc allocation
This is useful when you want to actually free memory from pool too |
4c7d704408fc77467143a945dc2d0a856f72e674 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add memarea API
This can be used to create reference counted memory areas where a callback
is called once the refcount drops to zero. |
e9fe799e27b5a3b67c256766d4bafd388e560684 |
|
10-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add istream-try
This can be used to automatically detect the underlying istream format from
a given list of choices. |
149299c7d5136a8fb425ef3cf8953026a1358002 |
|
11-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use check-local in Makefile.am instead of overriding check directly
This helps with dependency problems, like running "make check" in
lib-storage without "make" first would try to compile the test programs
too early and fail. |
184d3a07c99f4622c16d99efc08d6516c2c8b48a |
|
05-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: move fd_set_nonblock() to fd-util.[ch] |
fa26ad32932ab2ce1b7e3b2b121bb2df886f5736 |
|
05-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: move fd-close-on-exec.[ch] code into fd-util.[ch] |
df6b9bbcd01a383a021a770ea19e8533ee21d4aa |
|
05-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: always include fd-close-on-exec.h & fd-set-nonblock.h via fd-util.h |
1de7b73a11afda43323410a4481d866930b1e632 |
|
05-Oct-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add multiplex stream support
This allows having multiple channels of data in single stream. |
5405ee4d314ccb4a9c3c0c20f3d9996a9eba5ee2 |
|
07-Sep-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Replace rand.c with i_rand function
Replacement for rand |
0043fea12a75cf8fcf2892673106844376da8e76 |
|
07-Sep-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: lib-signals: Removed explicit notification of ioloop change through lib_signals_reset_ioloop() in favor of implicit method.
Before, if the ioloop changed, the application had to explicitly notify lib-signals using lib_signals_reset_ioloop().
This is error-prone and requires doing this all over the Dovecot code base.
Now, lib-signals registers an ioloop switch callback that deals with this implicitly.
The application can detach lib-signals from the ioloop explicitly if delayed signal handling is not required/desired in the new ioloop.
Specific delayed signal handlers can be exempt from this automated behavior using a flag, meaning that such signal handlers need to be moved between ioloops explicitly. |
b3e71425659780a58cba2f1d84eceef5b4616762 |
|
24-Jul-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
var-expand: Add support for conditionals
%{if;value-a,op,value-b:true-value:false-value} |
19b42eb8acd9aa4790476d5c42df304679b33de3 |
|
11-Jul-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: Created basic test suite for ostream-buffer. |
9a18972285665fc8ce3709f444f0f1e72e8b71a7 |
|
28-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add unit test for file_create_locked() |
c9d76e2baf653fa5504d6849e5c1aae32eff3c53 |
|
12-Jun-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: import byte swapping & endian converting functions |
6509aa7306649042e828fef9e2f280f4535ea137 |
|
08-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add test-mempool unit test.
It verifies that the p_new() and p_realloc_type() handle overflows
correctly. test-malloc-overflow already does this for the low-level
MALLOC_*() macros, but here we're cheking that the actually used
memory allocation macros also work. |
71b92ca8e3ecfba24c2247df997719a4a482850c |
|
08-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_realloc_type() for i_realloc() that checks for overflows |
f08b05d41b66e6f52daf6e8b40c1612617e84c79 |
|
09-May-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
{lib,lib-fts}: fix builds with BSD make
Without this change, BSD make doesn't know how to make a couple of the
generated files because the BUILT_SOURCES file names don't match exactly
the left hand sides of the rules. (GNU make somehow manages to match the
rule even though it is not an exact match.) |
b2760eb6b4906ad5d2adff941a1172c39657eb61 |
|
09-May-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: use full path to unicode data script
This is a step toward fixing builds where object dir != source dir. |
16d84b9006cfce652b5892727628dbfb5cc03726 |
|
09-May-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: download unicode data into srcdir
This is a step toward fixing builds where object dir != source dir. |
5c00a22fcca7f68479a8768fec7ace7f679b344d |
|
23-Mar-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add extension support for var-expand
This enables loading new var-expand features
using plugins. |
4e64ac91c5a3eb2a55e0b18d8da832b29ec08289 |
|
23-Mar-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Download unicode.org files from dovecot.org |
6004fdf3cc8fe87a6c35ce297d39ab68feb707b0 |
|
20-Feb-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib,lib-storage: Move hook building code to lib
This allows it to be reused elsewhere |
b28403dc4da6ee942ff18315596b43d4c4e9b7bd |
|
30-Jan-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Add tests for path-util |
dfa2201c6ac8ddb2d2798dee15662cfe774e644e |
|
30-Jan-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Rename abspath to path-util |
c81ec7de302a1c38f4ea27a82dad3b2f631701d9 |
|
23-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add unit test for istream-sized |
ddf9529d37056f8817825f6265c27d8070123013 |
|
23-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add istream-jsonstr unit test. |
b716136fc47efd434d60be5db262b4013e375fa9 |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add MALLOC_MULTIPLY() and MALLOC_ADD()
These can be used for calculating memory allocation sizes. If there's an
overflow, the macro panics. |
134b5022c0549daef243e2c3220bd0238f396868 |
|
29-Nov-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: add tests for HMAC-SHA256 from RFC 4231 |
f7060b8499ed07205734cf7af94ad5405fa687b5 |
|
17-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add test for iostream-proxy |
26e7bc65f13482709c0f6216650582e7705eeeff |
|
17-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add iostream-proxy
iostream-proxy proxies data between two pairs of
istream/ostream. |
4d9181518769b1f78d8078f7fae899fd0b95907f |
|
17-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add tests for iostream-pump |
08c0bffa1c9ccb1ac67689093f3c99cd38cfd3a4 |
|
17-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add iostream-pump |
70ee483d320a270993b56c713e350b736edd753f |
|
08-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add SHA3 hashing methods for 256 and 512 bits |
6868400686d0726ac2c08d67ed896f2c76e7b219 |
|
08-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Move sha context and result size to new header
This is to prepare for SHA3 inclusion |
458d877d84f62005e0ffc338f8591a8e2a36adad |
|
03-Oct-2016 |
Stephan Bosch <stephan@rename-it.nl> |
lib: uri-util: Implemented API to check generic URI syntax.
This allows checking whether something is a valid URI of any type.
This change adds a test suite for the generic URI syntax, which is currently the main purpose of the API addition.
Apart from a few simple vality checks, the test suite also tests various URI examples from RFCs. |
6e2856a5beeeb0edf5d852dde63d99fb9af11151 |
|
13-Aug-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: move sort and search from strfuncs.h to sort.h |
6335b1be387359ac461b0c34087bbba98a925a49 |
|
08-Aug-2016 |
Phil Carmody <phil@dovecot.fi> |
lib: tests - give the tests names, using the new macros
The lists of test function declarations and of test functions to call was
basically the same list. Use the new test macros to squash them into one
list, and then chose to name all the tests, so that you can select which
ones to run. This can simplify the debug cycle when some of the tests are
lengthy.
e.g.:
phil@phil:~/repos/dovecot-core$ src/lib/test-lib --match crc
crc32 ................................................................ : ok
0 / 1 tests failed
src/lib is clearly the most complicated case, conversions of others where
filtering would be useful should be trivial following this example.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
ed1e909434714837f583c9d180c2a16a1c2675c2 |
|
04-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Added log throttling API. |
ea623e25e8d03cb1c28677f418d3dcd5729d09e1 |
|
30-Apr-2016 |
Stephan Bosch <stephan@rename-it.nl> |
lib: Added ostream-unix for writing fd sockets via ostream. |
2ac0ee86377636dcf9e8c0ddad93842b1fb3d46a |
|
30-Apr-2016 |
Stephan Bosch <stephan@rename-it.nl> |
lib: ostream-file: Allow creating derived file output streams. |
df74b8f6ff432d9a26727669dfed9a15d77efb55 |
|
27-Apr-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add PKCS#5 pbkdf1 and 2 |
d1eec04fac1f40f4d8f4c84f7f90ef6944495418 |
|
12-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Added ostream-null |
2686ef87921233609d1d8ec8dee2883facc2c5eb |
|
24-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Added unit test to iostream-temp. |
ec39e55c707d8815d7444285e7950d39baba0b5e |
|
10-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
Makefile: Added missing ostream-escaped.h |
662bb64be818407c6719a69780411f7ca8d6c96f |
|
10-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add ostream-escaped filter |
3ab672903a7ed98263b89180261079870c964831 |
|
26-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: When closing istream-chain, make sure parent stream is seeked to correct offset.
We were only seeking it earlier if it ended at EOF. |
d9e3a9484eb98b3363a2188a8b1efec5415950ef |
|
21-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
Makefile: Added missing sort.h |
273a7cf98c20a3794990e2a6fe09cbb63f4ece26 |
|
15-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added a simple timing.h API for tracking min/max/avg for events. |
9b3565b09683b48f66de51aebb52786934d1c324 |
|
27-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Try fixing ec6e672a6e32 (ioloop timeout fixing)
Previous code was broken at least when moving a timeout between ioloops.
This is now tested and works. |
9c0c600b351ec8043f538026937d4273d11812a8 |
|
27-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
Reverted ec6e672a6e32 for now due to some bugs. |
72a7c4f2ba93a723e23c941369a2985d75f240c9 |
|
27-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
ioloop: Delay actual start of a new normal timeout until the next io_loop_run() cycle.
This makes sure that timeouts will not expire before they get a chance to
run. |
b554101f70e3f16380903c9a4ee87a2c96c1d322 |
|
23-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added io_stream_get_disconnect_reason() to iostream.h |
88e52b9ca10bdf02766f79925ec182fc1dd06bd1 |
|
19-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
Removed support for dnotify.
Everybody should be using inotify by now. |
9294b9ad2eb112258c247906b53010664f84e57b |
|
16-Jun-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added o_stream_create_failure_at() to inject EIO at given offset in ostream |
289bb39856d74484c1622d096922acf126dd90fc |
|
16-Jun-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added i_stream_create_failure_at() to inject EIO at given offset in istream. |
8549b59aa3499ddf0b7b59bc2e083933ebbb4f1f |
|
15-Jun-2015 |
Phil Carmody <phil@dovecot.fi> |
lib: test-failures - tests get/set handlers and the various log levels
Also indirectoy tests the new lib-test test_expect* family.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
a63907c14bd96eec1493eb893a043137c1799485 |
|
23-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added file_create_locked() |
a5563dc790a44bb58860d74479a24349f593d68f |
|
14-May-2015 |
Timo Sirainen <tss@iki.fi> |
Reverted d592417ec815 which added unnecessary code to Makefiles.
The original problem it tried to solve was properly fixed by 46969c4cc57e.
make will actually wait for processes to finish creating files before it
continues to the next program that wants to access the file. As long as the
dependencies are correct. |
68ae5d6615e80f46d5565735a700ea69869d46a4 |
|
29-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Renamed test-network to test-net
Since network.c had been renamed to net.c some time ago. |
bf132be3fe1c9e8de84f10d0b05c0b46ca542ac4 |
|
25-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added istream-unix for reading fd sockets via istream. |
31e6dbee5fc7d6c33b44c75c7e18ea576f44184b |
|
08-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added json-tree API for parsing JSON input into a tree structure.
This makes it easier to access complicated JSON structs that can fit into
memory. |
ca20a10994930a63a2991939f8613d1a59b897e3 |
|
13-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
Makefile: Avoid make race conditions when generating files that are used as dependencies.
The file creation needs to be atomic, otherwise another process can start
trying to use an unfinished file. So we first create .tmp file and then mv
it into the final one. |
75f7e423ea22446ed529d33cb660dadf680e13e0 |
|
15-Nov-2014 |
Stephan Bosch <stephan@rename-it.nl> |
Added support for base32 encode/decode. |
639587335dfe5d66dc7034817b3e685458ecbee1 |
|
13-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
lib: Added str-table API for keeping reference counted strings in a hash table. |
3bb59b47d47cba85a92df67823b0e49d2c383307 |
|
22-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib: Added unit tests for guid_128_*() |
5a9c7366ed354a7ad309cc17c7cf9951facfedf5 |
|
19-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
lib: Added unit tests for wildcard_match() |
605ebd475263466e60d43fccadb4c39c7bdfe174 |
|
11-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
lib: Added istream-callback API |
992a1726a41b42fa47204565ff17f7c635fcb421 |
|
28-Jul-2014 |
Phil Carmody <phil@dovecot.fi> |
lib: test-data-stack - too important a library not to be thrashed hard
OK, it's thrashed a bit by other tests such as aqueue, str, etc., but these
tests attempt to probe all corner cases given detailed knowledge of the
limits of the block/frame implementation.
At the moment, no realloc functionality is tested, as with DEBUG builds
they would fail very noisily.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
42826d96c8d0bba9eddc85b01bf70d7db571ae7f |
|
02-Jul-2014 |
Phil Carmody <phil@dovecot.fi> |
lib: test-lib - add unit tests for str_to_*() helpers
This doesn't test all the helpers, but ensures both signed and unsigned
are tested, as are 32-bit and 64-bit cases. All the other helpers fall
back onto using one of those cases. Unless uintmax_t is larger than 64
bits, in which case this needs a revisit.
NOTE: This causes the following make check errors:
test-strnum.c:35: Assert(#7) failed: ret == u64tests[i].ret
test-strnum.c:35: Assert(#10) failed: ret == u64tests[i].ret
test-strnum.c:37: Assert(#10) failed: val == u64tests[i].val
str_to_uint64 ........................................................ : FAILED
Corresponding to test cases:
[7] = INVALID(18446744073709551616),
This does not wrap-past-0 (become smaller) on multiply, but wraps-past-0 on addition.
[10]= INVALID(20496382304121724020),
This wraps-past-n (becomes larger) on multiply.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
1b139ee4de2833fbf0d51ee6f19eb4515d4e8942 |
|
27-Jun-2014 |
Phil Carmody <phil@dovecot.fi> |
lib: add rand helper library
Initially, just wrap srand() so that we can find out what the last-used
seed was. In situations where srand() is called only once (via this helper)
this lets us reproduce exactly the same stream of random data again in
order to reproduce rare crashes.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
1d940afbc02516d8c3d016780e1223a779844a1e |
|
27-Jun-2014 |
Phil Carmody <phil@dovecot.fi> |
lib: test printf_format_fix()
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
f5982bb5b0a704e88fa2b44b0b74e365d13103b9 |
|
19-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
lib: If two istreams share one parent, i_stream_get_data() may have returned corrupted data to another.
This happened only for istreams that used parent's buffer directly instead
of having their own buffer. For now at least we've solved this by truncating
the other stream's buffer so it needs to be read again. Hopefully this is
good enough.
Added also unit test to check this functionality. |
9fe07780492524a34423686794bc1b4061206246 |
|
09-Jun-2014 |
Phil Carmody <phil@dovecot.fi> |
lib: unit tests for lib/bits
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
3637a2ad3b2ead17efd5591f73effd3b140d8d2d |
|
09-Jun-2014 |
Phil Carmody <phil@dovecot.fi> |
lib: bit twiddles
bits_requiredXX() gives the number of bits required to store an unsigned
integer. Here, XX is 8, 16, 32, 64, reperesenting the size of the operand.
It belongs in the same file as nearest_power(), which makes most sense
in a separate bit twiddles file. Universal enough to stay in lib.h by
inclusion.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
44af44edbffb19d33e109b4eb74d41f4fbb2e04a |
|
09-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
lib: Added some kind of a unit test for hash table.
Just try out some insert+deletes randomly. Mainly I wrote this to check if
there is some obvious problem, but looks like not. |
b0114f9348060796a29a9042af757e8f99cdd422 |
|
07-May-2014 |
Timo Sirainen <tss@iki.fi> |
liblib: Added unit test for hash methods to make sure they don't do read access beyond buffer.
This currently fails for MD4 and MD5, so they need to be fixed/replaced.. |
854b4074ac77a138b3983d72510b4d8779d15040 |
|
03-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
Added istream-timeout, which triggers I/O event and fails with ETIMEDOUT after the timeout. |
3157f61431f19e01173e2e0d270c28af86dc97aa |
|
09-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
liblib: Added istream-hash, similar to ostream-hash. |
2e5d4199ae0f51de146480d13780530c7dd9e3e4 |
|
06-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
Added ostream-hash for calculating a hash from data going through ostream. |
8e4a702a1f96f118976da6eb9ece344df625eabb |
|
15-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
buffer: Always keep +1 byte available for str_c()'s NUL. |
86763e4c68313df83606e1060fc1795280590677 |
|
04-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
uni_utf8_*(): Treat overlong UTF8 sequences as invalid. |
7877db7b5daad125b6cb3e015574f33871c9a51b |
|
29-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
JSON parser: Added support for reading string value as istream. |
ae9691f7ef36d5272d72c90fa51393dfea5dd126 |
|
29-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
JSON parser supports now nested objects and parsing from non-blocking input stream. |
cf636afb3826f0d8e15c248aa1fc04ce72820e08 |
|
26-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
Added iostream-temp for easily creating a temporary istream (to memory/file). |
bdd36cfdba3ff66d25570a9ff568d69e1eb543cf |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed network.[ch] to net.[ch].
The function prefixes already started with net_ instead of network_.
And icecap wants to use network.h for other purpose. :) |
0a3769a4ef3afbbbd05df38f43ec7382fd65a2b6 |
|
30-Aug-2012 |
Florian Zeitz <florob@babelmonkeys.de> |
lib: Generalize hmac to be hash independent |
ad044cd01e98be8041c45849056616a37fbc6954 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Added missing hash-decl.h |
3f73764415873c1d7c9a284f19bbc124c4c9ac7b |
|
11-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
liblib: Added "number packing" API. |
3700eab7818bcf8a68424c418485ae4e8770865d |
|
10-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Added istream-base64-decoder. |
96f89d51e8315f644f46804a9f0fc4f685ac48bf |
|
30-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
Added "connection" API for handling client/server connections more easily. |
bc151e6b8ae73b5bf5a9dbf011b14dab220c92de |
|
08-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
Added "connection" API for handling client/server connections more easily. |
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0 |
|
08-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
Added a simple JSON parser for parsing an object. |
c00c7161dbec6be950ca3596969d0a3019bb281b |
|
28-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed istream-attachment to istream-sized.
The code didn't really assume anything about the input being an attachment,
so this allows reusing the stream for other purposes. |
cb78bd2ad54e402c1f53930b41e2295683bda90b |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Replaced (void)close(fd) and close_keep_errno() with i_close_fd().
i_close_fd() preserves the errno and logs an error if the close() fails. |
0fe2992e4d09f3ae4cceea88c9871c832d67b461 |
|
02-Jun-2012 |
Stephan Bosch <stephan@rename-it.nl> |
Added chain istream.
This is a nephew of the concat stream with the difference that new child
streams can be added dynamically. |
8fe8f97e688779add9cd042a9db4ddb7b117cce2 |
|
02-Jun-2012 |
Stephan Bosch <stephan@rename-it.nl> |
liblib: Added generic URI parsing functions. |
5fb662c8dff409ed8c8385cde59325b944af66b4 |
|
02-Jun-2012 |
Stephan Bosch <stephan@rename-it.nl> |
Adds ISO8601/RFC3339 date format parsing and construction support.
Interface is somewhat based on message date parser in src/lib-mail, but it
also provides access to struct tm. |
eab3cb1db0b4fb711eb6e34421c372321d7a9833 |
|
26-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
Makefile: Added UnicodeData.txt dependency to unicodemap.c. |
d8fc47550ff67af42508aa0e77f52cb5da3c2631 |
|
24-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
Makefile: Added missing hmac-sha1.h |
a3350c34a257a28417c7df10b3fde97af70e4f1f |
|
16-Sep-2011 |
Florian Zeitz <florob@babelmonkeys.de> |
lib: Add hmac-sha1 adapted from hmac-md5 |
be6ad6e46ecb8c7126b421819046e7f4857a2bab |
|
21-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
Added rawlog i/ostreams. |
0536ccb51d41e3078c3a9fa33e509fb4b2420f95 |
|
21-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
Renamed lib/*-internal.h files to lib/*-private.h for consistency. |
de62ce819d59a529530da4b57be1b8d6dad13d6b |
|
25-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
Moved GUID code to liblib. Use guid_128_t type consistently everywhere. |
596f582a422eddef951ee445f9a0ed3d4bf14ff8 |
|
17-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Added i_getpw*() and i_getgr*() wrappers for getpw*()/getgr*().
These functions make error handling easier. |
6a3a0723319ea31343ea6f03f40672c4b533b21d |
|
15-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
Added unit test for istream-base64-encoder. |
dc2e774b4c86a1bedba5ca4631f9f49f77b94d76 |
|
19-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
liblib: Added istream for reading binary data as base64-encoded. |
37bd98570b30513255a19cc52de16594bc4256e0 |
|
19-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
liblib: Added API for easily building hash strings based on given format string and input. |
74ae32512357bdd4872bf160dc697ff7b54b54c5 |
|
19-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
liblib: Added a common API for accessing all hash methods. |
08baf8e4f38f6e5858b16e954e1841675cecae0c |
|
18-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
ostream-file: Fixed potential crash in write_at() and also fixed attempted optimization. |
2a2beae3a4c1e75b3aeff996781503138e6f24bc |
|
03-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
liblib: Removed unused system-clean and alloconly-clean mempools.
They're just making the code messier and slower. |
b780aa272b742a43579cdb523cc79cc8d4521306 |
|
25-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Renamed fsync_disable to mail_fsync=optimized|always|never.
--HG--
branch : HEAD |
53f37d41e1abb068131320f39f870fc92e81f560 |
|
08-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
configure: Removed --enable-header-install. It's now always enabled.
There didn't seem to be much point in keeping it optional anymore. They're
now more useful than before because shared libraries are also installed.
--HG--
branch : HEAD |
3ed749924ed5215d84e0a095bc7d74ce3100e242 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Added str_to_*() for converting strings to numbers, plus a few helper functions.
The str_to_*() return failure also if integer is too large or too small to
fit into destination.
--HG--
branch : HEAD |
74179667f4325e7d7f5b49bc040741c6edc2dad2 |
|
27-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Added execv_const() and execvp_const() helper functions.
--HG--
branch : HEAD |
c2af5ea6d4df3a69d2a7a5a820d53ad4c074f3a6 |
|
26-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
If valgrind exists, run unit tests using it.
If valgrind prints any errors, fail the test.
--HG--
branch : HEAD |
f2528b977128fbac005fc940012eac9e50022c4d |
|
18-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Added wildcard_match*() for matching strings with '*' and '?' wildcards.
--HG--
branch : HEAD |
3efdcb59492bd1e0602340a4204003a32b34654a |
|
05-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
crc32*() didn't return a standard CRC32 value.
--HG--
branch : HEAD |
927d3977d5598f12ae18d4fa3f22b9e913f7dd46 |
|
23-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
var_expand(): Added support for built-in host, pid and env:* variables.
--HG--
branch : HEAD |
9d930f59fda0bac96da3c5b3e3374a81e279527e |
|
12-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Added t_abspath*().
--HG--
branch : HEAD |
12ff27eadb44c6877298d3e214c7039342669669 |
|
12-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Added p_strarray_dup().
--HG--
branch : HEAD |
0f95379e1ceb0685e9a288e01550bfecfe7d4bcb |
|
23-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Makefile: Added UnicodeData.txt to distribution.
--HG--
branch : HEAD |
9761e0036c87f459abe040632e1252f794ffe5f7 |
|
06-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Added DLLIST2_*() functions for doubly linked list with head and tail.
--HG--
branch : HEAD |
7d548d4984752d74bfea8dc4bf1781a8996f43e7 |
|
26-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Added unit tests for istream-seekable istream-concat.
--HG--
branch : HEAD |
8d74263c408f3ad68eda24796b5b8c843104480d |
|
09-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Moved askpass() from master/ to lib/. Added t_askpass().
--HG--
branch : HEAD |
9c7045e31aa75d9e3014e64303c8b817de5094ef |
|
05-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
unicodemap.c now gets recreated if unicodemap.pl changes.
--HG--
branch : HEAD |
03888f9891b45c024f2bdc8e55438528b78bd96e |
|
14-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Added unit test for istream-tee.
--HG--
branch : HEAD |
4332108b1bff778b866f6421771578e7c6633098 |
|
14-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Renamed test-istream.c to test-istream-crlf.c
--HG--
branch : HEAD |
bc6a872cc6cecb4e3f8d0a99236c4ab484f2f754 |
|
12-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Added unit tests for timeval_*().
--HG--
branch : HEAD |
7ef3553585e556f35d5919589cfdc1de3329e4bb |
|
12-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Moved all struct timeval comparing/calculation code to lib/time-util.
--HG--
branch : HEAD |
b0db301ae7cdbc8376e9a7717809650df896d1df |
|
03-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Makefiles: Changed check-test to depend on all-am to fix build dependency problems.
--HG--
branch : HEAD |
002db944c36f6d6021aa2c0518e2f117bff4bf3a |
|
16-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Added binary_to_hex_append().
--HG--
branch : HEAD |
b565a6a7a66fb9f224d00c06a950e3c1c585c18e |
|
30-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Added o_stream_create_buffer() for having output stream write to a buffer.
--HG--
branch : HEAD |
047ebb958b682bc058097eddc34df574c3f3d6d4 |
|
16-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Added str_append_tabunescaped(). str_tabescape*() now escapes also CR. Added unit tests.
--HG--
branch : HEAD |
05d0c79c7bd4b9449e949bd93f5f60cde9197869 |
|
03-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Compiling fix for Solaris 7.
--HG--
branch : HEAD |
48acc31adebfdd4e4945ee76e1f5259e4b1b6fff |
|
01-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
liblib unit tests are now split to separate files.
--HG--
branch : HEAD |
40a5aeebf6b4858b93f0ddff0bf12fba769cf903 |
|
09-May-2009 |
Timo Sirainen <tss@iki.fi> |
Tests are now run on "make check". Added initial tests for lib-index.
Moved old tests away from tests/ to libraries' individual directories.
--HG--
branch : HEAD |
ee99e9730164f6652804047e901d219b0c213843 |
|
05-May-2009 |
Mark Washenberger <none@none> |
Flattened header namespace on install.
--HG--
branch : HEAD |
d3b29d4b61f1549244a7509b798be6f806cf7d4e |
|
04-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Build libdovecot.so and libdovecot-storage.so.
Based on patch by Stephan Bosch.
--HG--
branch : HEAD |
5cdd1691e5185ecfe424f5de7b6f697813b88ba2 |
|
20-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Moved user-friendly EACCES error message generation to lib/.
--HG--
branch : HEAD |
d10036d32eac25c861f9075ade2c007f5524b81e |
|
21-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Added API for waiting child processes.
--HG--
branch : HEAD |
af5423cd2fb397e699c76f0d687ff23773d07a7c |
|
01-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Added an alternative hash table implementation.
--HG--
branch : HEAD |
aa181b6e3751d4e76da6f135729032660b14406c |
|
13-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Uninlined some of the more complex array functions.
--HG--
branch : HEAD |
ff3e079cdcd74e64eb35af0bc361e75d2ea03822 |
|
04-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Moved fdatasync_path() to a global function.
--HG--
branch : HEAD |
bb41db071dcbc51a6f170d7f44afb74adb00f89a |
|
04-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Moved fdatasync_path() to a global function.
--HG--
branch : HEAD |
04052710485ccc4a89c177527066b9c2a511f221 |
|
06-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Added macros for handling a doubly linked list.
--HG--
branch : HEAD |
9afebd21ced1d43f638e08a1411c9a89e526231f |
|
03-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Added a priority queue implementation.
--HG--
branch : HEAD |
63cde222abaaa2a9bdaa9a143698dbc8b23bd742 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed queue to aqueue ("array queue") because struct queue already exists
in Solaris.
--HG--
branch : HEAD |
f59e2b09deeb94317342016949592577ef150c1b |
|
29-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Added queue implementation.
--HG--
branch : HEAD |
0791d5779d67da0983375dc01dadec4c749b6f38 |
|
08-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Removed unlink_lockfiles() and replaced it with a simpler unlink_old_files()
--HG--
branch : HEAD |
130d899cc20670cf554873a07d1cd647816558ec |
|
20-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Create unicodemap.c to $(srcdir).
--HG--
branch : HEAD |
f89cb43088c8b46d12d66ac924724b53ab14ce66 |
|
20-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Added concatenation input stream.
--HG--
branch : HEAD |
37f2d421e07c55edcc1b40c53be37eec637c0c1e |
|
06-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Removed CRLF/LF output streams. They're no longer needed.
--HG--
branch : HEAD |
5fe5ea74285e2fc0fbf7568c53f251aa894650fb |
|
06-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Added input stream filters for reading linefeeds as CRLFs or LFs.
--HG--
branch : HEAD |
f186e12b626342ee566e2310751074841b7377fa |
|
20-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Add unicodemap.pl to tarball, although it's not necessary.
--HG--
branch : HEAD |
0ddb604f911b908085ef787455c015a91dc9c365 |
|
20-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added uni_ucs4_to_titlecase() and uni_utf8_to_decomposed_titlecase(). They
use a unicharmap.c file generated from UnicodeData.txt.
--HG--
branch : HEAD |
7a7d97c082834dccdd89dbb95598977deec4d5a7 |
|
16-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Added support for SHA256. Based on patch by Jasper Slits.
--HG--
branch : HEAD |
5dd05e966ffd69181ab3067f6939b03ced68ebc3 |
|
11-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Require C99 compatible vsnprintf(). Removed printf_string_upper_bound() and
replaced the code with printf_format_fix*() and vsnprintf().
--HG--
branch : HEAD |
402f9183489c1a75736b1e9068c33fe2741a366d |
|
11-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed printf_string_fix_format() to printf_format_fix() and moved it to
its own file.
--HG--
branch : HEAD |
128ab2c52a29068be87e12ab5aebbb8fdc933adf |
|
11-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Added safe_mkstemp().
--HG--
branch : HEAD |
1d5e52e398381873081455ad99edec945038eec0 |
|
04-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Added Boyer-Moore string searching.
--HG--
branch : HEAD |
8e371a3ce32bd64288786855b8ce0cb63f19f7d1 |
|
29-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Better type safety to module_contexts arrays. Already fixed some bugs.
--HG--
branch : HEAD |
91ea6240c34e043ec47068aedc01fdb9b522dc33 |
|
18-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Added system_clean_pool. default_pool is now set statically, so it can be
changed before calling lib_init(). Use malloc_usable_size() if it's
available for asserts and for implementing system_clean_pool.
--HG--
branch : HEAD |
dcc76bb1e1bb287e3e71e6a39a7ca207fab0eaa8 |
|
08-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Various cleanups to ioloop code.
--HG--
branch : HEAD |
bbe42963032af89fac1318844da08c742525cc87 |
|
22-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Added --with-headers configure option to install .h files.
--HG--
branch : HEAD |
aa883f5fbc68920c48c4f52919e8a5bb9611e678 |
|
13-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added unichar_t UCS-4 type and some ucs4/utf8 functions.
--HG--
branch : HEAD |
7ba4c0608e32d0cc8a8600cb8b9987b2b56e2bf8 |
|
19-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Since getting core dumps can be sometimes difficult, if we now do abort()
ourself, we first log the backtrace. This works at least with Linux and
Solaris.
--HG--
branch : HEAD |
35565557e05721a761132cec2ba1d93acacb6c14 |
|
16-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
Rewrote much of the kqueue code. It didn't work correctly if there were both
input and output I/O handlers added for the same file descriptor. The code
works now very much like epoll code. Did also several cleanups.
--HG--
branch : HEAD |
f877ee033a0737100c2f661a7ca4c559ea2ddb8a |
|
11-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
Added crc32 calculation functions.
--HG--
branch : HEAD |
b978e532c217b51d398d1855893143b7bc0a73f3 |
|
17-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Added file_copy().
--HG--
branch : HEAD |
ea37a9aedfc3a6ff5f4ea10bc4eff4ca23f62a15 |
|
08-May-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added tee-istream, which can be used to create multiple readable input streams from one input stream.
--HG--
branch : HEAD |
b494ffed8ded8d170d9ace3dc607b1d278048241 |
|
14-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Added mountpoint_get() for looking up a path's mount point information.
--HG--
branch : HEAD |
89b548af722113acb5d63dfffb44423cb60f91e4 |
|
25-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Renamed safe-open.* to nfs-workarounds.*, safe_open() to nfs_safe_open() and
added a new global NFS_ESTALE_RETRY_COUNT which everyone uses instead of
defining their own.
--HG--
branch : HEAD |
1e47cfede3a0b62654105daab00e97b5d660bc6b |
|
16-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Try to handle ESTALE NFS errors the best way we can.
--HG--
branch : HEAD |
91ca41a6542f96558483c3086eb77db325c79e9f |
|
14-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Moved dupliated close_save_errno() code to public close_keep_errno() function.
--HG--
branch : HEAD |
6a029ebed745994ce2e5f64182d8b5c8f10d53d6 |
|
30-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Added kqueue notification support. Patch by Vaclav Haisman
--HG--
branch : HEAD |
8b1ff8af3123607dde63c516e007b47f6519c69a |
|
21-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Added bsearch_insert_pos(). Similar to bsearch(), but if value isn't found,
returns the position where it would be inserted.
--HG--
branch : HEAD |
efe43f863ea26447689f90680f339778fb1ec62b |
|
14-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Added kqueue support. Patch by Vaclav Haisman.
--HG--
branch : HEAD |
e6055ac974358d31bb2269731dcac57fbe910cc2 |
|
25-Nov-2005 |
Timo Sirainen <tss@iki.fi> |
Added decimal <-> hex string translation functions.
--HG--
branch : HEAD |
503a863a317acba125a4e46435694e35fad769e4 |
|
25-Nov-2005 |
Timo Sirainen <tss@iki.fi> |
Moved seq_range_*() functions to more generic ones in lib/.
--HG--
branch : HEAD |
afda7fc4b70f2bfe9f9ebeeb22b26570cd2f302d |
|
25-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Added fd_set_nonblock() and changed net_set_nonblock() to use it.
--HG--
branch : HEAD |
9d7451b57769988f7e3e41cd8790e65429ffc5c7 |
|
12-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Added inotify patch by Johannes Berg and did some restructuring to
ioloop notify internals.
--HG--
branch : HEAD |
055eca0e13ffb557074badd021d024ef9c17315c |
|
12-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Missing array-decl.h
--HG--
branch : HEAD |
2201e2cc1b3f744dac61c2bf8095bcb6b5719540 |
|
29-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Added istream-seekable, which allows combining multiple input streams and
creating a single seekable stream out of them.
--HG--
branch : HEAD |
3bbe99d30871f49610aac0417ee5951d1e740b98 |
|
27-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Added pool_get_exp_grown_size(). Use it for buffers, istreams and ostreams
when buffer needs to grow. Optimizes memory usage a bit.
--HG--
branch : HEAD |
30972f343b285b6214ea053e1939b92cfe79040c |
|
12-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Added dynamic array implementation. When compiling with gcc and DEBUG
enabled, gcc checks type safety at compile time.
--HG--
branch : HEAD |
66bcc2a2f65576211f2f55edbe61130b96287fcd |
|
28-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Added unix_socket_create().
--HG--
branch : HEAD |
deeabe11fa17e44a7fa1ad04b3ef573b27b1a25d |
|
08-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Removed byteorder.* files. They're not used anymore.
--HG--
branch : HEAD |
1098fc409a45e7603701dc94635927a673bee0c1 |
|
08-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Cache file works now with mmap_disable=yes. Still needs a few optimizations.
--HG--
branch : HEAD |
115e833ecfa871aa1056edf178fe26410c8f56f9 |
|
05-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Added string sanitization functions.
--HG--
branch : HEAD |
328930fb9395d9c73095e44a96e36581751b360d |
|
05-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Added epoll support if --with-ioloop=epoll is given. Patch by Andrey Panin.
--HG--
branch : HEAD |
4d46ce4d5d0279cf2efc09e012f16d99b680f991 |
|
23-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
ostream-crlf.h was missing
--HG--
branch : HEAD |
9cbaab4518c2bf1c88d4078856786c64d1d3d794 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Added CRLF/LF output stream converters.
--HG--
branch : HEAD |
2767104d81e97a109f0aa9758792bfa1da325a97 |
|
15-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
We never do blocking reads/writes to network anymore. Changed imap and pop3
processes to use a single I/O loop.
Not much tested yet, and currently LIST/LSUB may eat too much memory and
APPEND eats all CPU.
--HG--
branch : HEAD |
edf7428147facc11ddb43b9a874a99b96486d42d |
|
30-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Merged CRAM-MD5 and NTLM hmac-md5 code. Patch by Joshua Goodall
--HG--
branch : HEAD |
c7480644202e5451fbed448508ea29a25cffc99c |
|
28-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
NTLM authentication. Patch by Andrey Panin
--HG--
branch : HEAD |
794ac3e4a22caba0297a1333b43e6bd47fc50b91 |
|
26-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Added dovecotpw utility. Patch by Joshua Goodall
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |
dd62b77c932d1b518f2a3e4bf80e36542becc256 |
|
09-Nov-2003 |
Timo Sirainen <tss@iki.fi> |
istream rewrite. instead of directly setting any limits to stream, you now
have to use i_stream_create_limit() to existing stream. this should make the
istreams much easier to create and understand how they work.
--HG--
branch : HEAD |
cd466fe7b84b0223735a6469c7f7bc225f65996d |
|
21-Sep-2003 |
Timo Sirainen <tss@iki.fi> |
data_stack_pool split into two: unsafe_data_stack_pool which works like
before, and a new one which verifies that stack frame stays the same
whenever the pool is accessed.
--HG--
branch : HEAD |
9bf98814caf6ca9091a77e1eeb5d64bfc5c537af |
|
24-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
is now implemented for Linux dnotify.
--HG--
branch : HEAD |
af117dcec3b747f651d0cfebfa01387208fb623f |
|
06-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Added some network byte ordering functions and macros
--HG--
branch : HEAD |
53b32ab10cd22d7e762db4d813298ff72bff4b3d |
|
18-May-2003 |
Timo Sirainen <tss@iki.fi> |
More robust error handling for mbox.
--HG--
branch : HEAD |
9e708a17f984ef7690ff2468ec19ad62c95b1ac2 |
|
14-May-2003 |
Timo Sirainen <tss@iki.fi> |
Added support for dynamically loadable imap/pop3 modules.
--HG--
branch : HEAD |
48f78a48f2e1cf299026544444666471ae16ad97 |
|
12-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Locking code cleanups and small fixes
--HG--
branch : HEAD |
50933e4d608a259c49e72775284a5f9df985de84 |
|
11-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Added mail_full_filesystem_access setting. Some of the setting variable
types were declared wrong and caused Dovecot to crash if they were set in
config file.
--HG--
branch : HEAD |
4cb2599c5cdf27362a66ac475ce295409c093c92 |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Added var_expand()
--HG--
branch : HEAD |
4a6f9ed8e5412508dcba1eabb58a3680ad5e9b68 |
|
03-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Rewrote rfc822-tokenize.c to work one token at a time so it won't uselessly
take memory, maybe also a bit faster. This caused pretty large changes all
around.
Also moved all string (un)escaping code to lib/strescape.c.
--HG--
branch : HEAD |
e1e5b1f4ada9d9b4d36edeaf1c5229be90b12815 |
|
22-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
String function cleanups. Allocating 0 bytes of memory is treated as error
now, it could be an integer overflow. Moved printf_string_upper_bound() to
it's own file, so strfuncs.c can be with MIT license.
--HG--
branch : HEAD |
33ca6b017b6ebbd048651b5e3d16915001dbc291 |
|
21-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Replaced TempString with a String which can use any memory pool and uses
Buffer internally.
--HG--
branch : HEAD |
2b619d427addefb7d1660b23a528259d162a5f67 |
|
21-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
We don't have separate read-write pools, so renamed pool_create(.., FALSE)
to pool_alloconly_create().
--HG--
branch : HEAD |
fed105d173e2102400f9dc98623ca52979d8779b |
|
21-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
If used base/login directories exist already, make sure they're with correct
permissions. Always delete contents in login directory at startup.
Added safe_mkdir(). changed unlink_directory() behaviour, and fixed a race
condition which could have made it follow symlinks to other directories and
delete them. Didn't really harm us so far, we never used it for deleting
unsafe directories.
--HG--
branch : HEAD |
2a6f72a80e2c6e410e1128dd6beb4ea950b3839e |
|
17-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Added safe_memset() which guarantees that compiler optimizations don't
optimize it away. Not that we really need to clear the passwords from
memory, but won't hurt much either :)
--HG--
branch : HEAD |
def516ea503a60f20d510c14d5070b7ff5bbddf4 |
|
08-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Added buffer API. Point is to hide all buffer writing behind this API which
verifies that nothing overflows. Much better than doing the same checks all
around the code, even if it is slightly slower.
Buffer reading is still mostly done directly, that isn't such a big security
risk and I can't think of a reasonable API for it anyway.
--HG--
branch : HEAD |
ecc81625167ed96c04c02aa190a1ea5baa65b474 |
|
06-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Renamed IBuffer and OBuffer to IStream and OStream which describes their
functionality better. I tried to keep the variable names and comments also
sensible.
--HG--
branch : HEAD |
53d794b1cb99c0cc437ec9449d19abf504058390 |
|
03-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Login process now changes it's name if verbose_proctitle = yes, and we're
running BSD. This is also possible with Linux with a pretty ugly hack, which
you can enable by modifying lib/process-title.c if you _really_ want to.
And a nasty bugfix - login_process_per_connection setting didn't work with
imaps port connections which is exactly where it was mostly wanted.
--HG--
branch : HEAD |
962d9d2bb349ba5522247fb10a693a8a2c14c33c |
|
01-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
We use close-on-exec flag now to make sure that master process closes the
fds when executing other processes.
--HG--
branch : HEAD |
cfbab67e839000b57f32308dd26f9807b5dbe8e3 |
|
01-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Added virtual memory size limits to processes. Default values are pretty
high, this is mostly because I want it to prevent accidental infinite loops
eating memory or some integer overflows, not to actually restrict anything.
--HG--
branch : HEAD |
a128456c8530046dd9a998386f383160e70b532f |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Created env_put() and env_clean() for a bit easier handling of environment
variables.
--HG--
branch : HEAD |
4472a5d9137b6c0aaf586126a3c37319f86107b5 |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
-lcrypt
--HG--
branch : HEAD |
1f0615d56d43cb14aa67529bbda043f5d8af971a |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Forgot mycrypt.h
--HG--
branch : HEAD |
780f1209b9c85df383572c8020121197e80e7697 |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Still more crypt() problems. Wrapped it into mycrypt() which should finally
put end to this kludgeing.
--HG--
branch : HEAD |
960e80edf5cde4e194f0669c6c784cdd76e3dfe5 |
|
25-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
select() support was broken. Also changed the way it's built.
--HG--
branch : HEAD |
283230fafb40e39adb0ab9d8b62539cfeae76509 |
|
28-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
I/O buffers now use real blocking instead of setting up a sub-ioloop to
poll(). alarm() is called every 30 secs to send SIGHUP and break out of the
read/write calls, so the given timeout values aren't exact.
Also some other cleanups, like not including ioloop.h in [io]buffer.h which
broke several other files which hadn't included it itself..
--HG--
branch : HEAD |
201108608e6686d3e9dce9b95678a814122b6471 |
|
24-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Fixes to timezone handling which were handling quite badly. added
ioloop_timezone which gets updated with ioloop_time. Changed some GMT
references to UTC. Timezone offsets are in minutes now everywhere instead of
seconds. Fixes for unsigned time_t.
--HG--
branch : HEAD |
b646fdb90f75ab80ea7feca42fa2e1f8e788b004 |
|
14-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Split IOBuffer into mmaped IBuffer, file IBuffer, memory data IBuffer and
file OBuffer.
--HG--
branch : HEAD |
35f9fc9ddd58846ddbbe2a94cd04a91318f989a3 |
|
10-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
missing mempool-datastack.c
--HG--
branch : HEAD |
6d72e8dc3009c2850b74b39fecb72c32765156ac |
|
09-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
s/temporary memory pool/data stack/ which is the correct name for it.
--HG--
branch : HEAD |
02b32cf39a098edf60981fc228e4b034f11f3b90 |
|
14-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
lots of cleanups. also index/datafile is now capable of staying in memory,
as long as it's noticed while opening the index.
--HG--
branch : HEAD |
79d62d195b7eb330c4962ad166f2d066f8837e91 |
|
13-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Added extra functions for easier printing of error messages. Moved
file_set_size() to generic function in lib. If there's no space to build
hash file, it builds itself in anon-mmaped memory and stays there.
--HG--
branch : HEAD |
56b4a136485a399620a650150f8cb8c55418a278 |
|
28-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
sendfile() works now properly with 64bit off_t
--HG--
branch : HEAD |
c27c55fe2c083c7573cde51e366ef689c1a69708 |
|
26-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Added write_full() which is a simple wrapper around write() meant for
writing into files.
When there's too much deleted data in index files, they're now compressed
when the index is being opened.
--HG--
branch : HEAD |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |