bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Change string position/length from unsigned int to size_t
Mainly to avoid truncating >4GB strings, which might potentially cause
some security holes. Normally there are other limits, which prevent such
excessive strings from being created in the first place.
I'm sure this didn't find everything. Maybe everything could be found with
compiler warnings. -Wconversion kind of does it, but it gives way too many
unnecessary warnings.
These were mainly found with:
grep " = strlen"
egrep "unsigned int.*(size|len)" |
41ee23907b084da5baed459e35bccd5a33430419 |
|
16-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: use dev_null_fd instead of opening /dev/null |
6e2856a5beeeb0edf5d852dde63d99fb9af11151 |
|
13-Aug-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: move sort and search from strfuncs.h to sort.h |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
4898b00d598cccc57a5ea6512f41eb3495447d4b |
|
20-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Fixed potential build error when building without modules. |
737c22276f79b5747fd91e87750c80089cd9c062 |
|
09-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
lib: And another module_dir_load() bugfix.. |
4d9cd7ab28091c2581915368ffec9be03670beae |
|
09-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Small error logging improvements for module_dir_load() |
a870ffe7505057022412bc0e688b5e2dae4c2440 |
|
09-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Recent module_dir_load() changes broke error logging.
If there was a required list of modules, the error was properly returned.
But when loading all plugins, the errors weren't logged. |
842a57e10c48a6c92fb70368eb311d1eb3bd54ef |
|
06-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Accidentally committed a nonexistent function call in previous commit. |
e05a7d1768835dad38360fbbba9d27902c998075 |
|
06-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added module_dir_try_load_missing() that returns error instead of logging it.
Also module_names now can be given for it without i_fatal() being called. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
2e29c5838d18258c61559ab7890a656df3453544 |
|
13-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
Compile fix for systems without dlopen() |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
4e88d2b9eb7b705d09a7f2582e6f71a48160f0f6 |
|
29-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
module-dir: Allow plugins to have deinit() function without init() function |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
73cf2211482650c85dc057a1f8d12dfdbdbbb3b7 |
|
26-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
liblib: Added module_dir_find() |
1a108b2aeaeb47a46c83166c428591c8785293a5 |
|
06-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
module_dir_unload(): Don't dlclose() modules if GDB environment is set. |
6ca79dbc2a9f54eb99559f1475da45a079c036fd |
|
06-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
module_dir_deinit(): If no modules were actually initialized, avoid doing memory allocation.
This allows calling module_dir_unload() with atexit(), as long as the module
doesn't need to call deinit(). |
bd63b5b860658b01b1f46f26d406e1e4a9dc019a |
|
11-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Plugin ABI version checking improvements.
Previously the plugin version was checked against the version string
returned by the currently running Dovecot master process, not necessarily
the same as the binary. Also version_ignore=yes setting skipped the version
check entirely.
Now there's a new DOVECOT_ABI_VERSION macro that can (at least in theory) be
updated only when the ABI actually changes. The version is in format
"2.2.ABIv1(2.2.15)", where the (2.2.15) would be the actual Dovecot version
number that gets ignored when comparing the strings.
Also now the plugin version is compared to the actually running binary's
ABI, not the master's version, and it can't be ignored with a setting. |
27a44fcfd8d19bffe0f267f20a2b5d3fe7600fdd |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Removed CONTEXT_TYPE_SAFETY macro and reimplemented its functionality better.
gcc/clang now gives a compiler error in many places if callback isn't
exactly what was expected. It's also now much easier to add more of these
checks. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
39d3ce140bb088d97e2b79d309941fb4c0095a92 |
|
01-Oct-2011 |
Timo Sirainen <tss@iki.fi> |
module_dir_load*(): Support filtering and ignoring missing modules. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
10823ce2f391bd4f4acfef11f55d555097423bab |
|
10-Feb-2011 |
Dennis Schridde <devurandom@gmx.net> |
Put modulename in quotes when complaining about its non-existence |
83c6bd1b0eb2c54f415287b7d22662867dd62ec3 |
|
24-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
module_dir_load(): Make it clearer that "Skipping module" debug message is normal. |
aab836d90bf3d7e8e836f6af128129e4743a46e3 |
|
12-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
module_dir_load(): Support multiple binaries for checking dependency |
ceb615da0308bf9a59e54fb12fe8e38cfd721c54 |
|
06-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
module_dir_load(): If ignore_dlopen_errors and debug is set, still log a debug message about failure. |
98c3aa2587ad3e81e1548a3a4f79b2a24566cec3 |
|
30-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
If module can't be loaded due to missing dependency, suggest a setting how to do it. |
9cb5240b14923b5e64f32027eb46ee97d1a56f97 |
|
07-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
module_dir_load(): Added support for checking binary name dependency.
--HG--
branch : HEAD |
b4ff610b86a769f92ad15069a93e2d046a48043c |
|
05-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
module_dir_load(): Don't crash with "" plugin list.
Patch by Stephan Bosch.
--HG--
branch : HEAD |
03860500ead019ab880ec8317d2cdb946c68b758 |
|
02-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
module_dir_load(): Ignore duplicates in module names.
--HG--
branch : HEAD |
6c62d058146f3292aa09f912db33642d7756dde8 |
|
02-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
openbsd: Hide errors written by dlopen() if we wanted to ignore them.
doveadm loads all plugins at startup that it can. It shouldn't be printing
unnecessary error messages to stderr.
--HG--
branch : HEAD |
ac22a6ff453cde2dbf12850489462d854ce48392 |
|
13-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
module_dir_load_missing(): If all modules are already loaded, don't scan plugin directory.
--HG--
branch : HEAD |
5510952e54f0f20294ff65127c0417f66f256944 |
|
08-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
module_dir_load*(): Added ignore_dlopen_errors flag.
--HG--
branch : HEAD |
02392c7df4f6bc5cb71617e757c39dce0debd23b |
|
04-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Don't call module's deinit() if its init() hasn't been called.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
d21897832a443d139d56b1fb1c86d8f76e5f77f3 |
|
07-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed compiling without module support.
--HG--
branch : HEAD |
9ba7e76c20be775f368254e3059a6189fe789f16 |
|
07-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
module_dir_load*() API changed to take settings struct, with debug field.
Fixed debug logging to also go from info log to debug log.
--HG--
branch : HEAD |
de3cdccf0e0e7fef975c7d99a392bbbcb127d18c |
|
07-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Added module_dir_load_missing() and module_get_plugin_name().
--HG--
branch : HEAD |
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388 |
|
04-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Plugin hook API changed to support per-user plugins within a process.
--HG--
branch : HEAD |
fab2d704b37f7517a0e1375f70c70259953afba6 |
|
17-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Added module_get_symbol_quiet().
--HG--
branch : HEAD |
ce36711c87c50d2b44665470123d2c05afe349da |
|
09-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
module_dir_load(): Support <name>_dependencies array listing required modules.
--HG--
branch : HEAD |
c9dea5c23355dea35c6fa423de69f6507852efe4 |
|
17-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Use array_sort() instead of qsort() wherever possible.
--HG--
branch : HEAD |
e774b2f08b0909382ddc3d2869ae7e3b97205184 |
|
04-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Increased some memory pool sizes.
--HG--
branch : HEAD |
7782e9d99d3d6de1c9c54919811038e2a705ea08 |
|
06-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Compile fix when modules are disabled.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
24abf21d02b4fe2bf539102fa50e4a6261242222 |
|
11-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Use dynamic module suffix provided by libtool rather than hardcoded ".so".
--HG--
branch : HEAD |
b8d232d88018c5cafd2f3be5a181d318137a45f2 |
|
27-May-2008 |
Timo Sirainen <tss@iki.fi> |
Avoid using shadow variables. Unfortunately -Wshadow also complains about
index variable conflicting with index(), which is used in way too many
places to change.
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
648d24583c1574441c4fa0331a90bd4d6e7996c5 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
pool_unref() now takes ** pointer.
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--HG--
branch : HEAD |
15b5ebcbf35292943ae0a261852a5548ca78e13d |
|
09-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Instead of exit()ing directly if loading plugins fail, use i_fatal() so
failure_callback can be called.
--HG--
branch : HEAD |
41590df9f518459d66a9f7b9be2126f2e31fb221 |
|
22-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Don't compare to PACKAGE_VERSION in lib/ core directly, rather make
module_dir_load() have the version string as parameter. Plugin version
checks can be skipped with version_ignore=yes.
--HG--
branch : HEAD |
325d1731b0f2a2c6a513bcf30e25b4ab299331dd |
|
22-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
If module contains a <module_name>_version string, fail if it doesn't match
PACKAGE_VERSION.
--HG--
branch : HEAD |
c45be4ad1bdb44d7d869e9e984154ecb2a1b3f43 |
|
16-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Don't crash at deinit if no modules are loaded.
--HG--
branch : HEAD |
14d766b4045bec63661260a4b3869becd678e173 |
|
16-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
module_dir_init() was calling the init() functions in reverse order.
--HG--
branch : HEAD |
4449ad85fcbd4f6fedbaa9a5bdfe58a9ae60f8ae |
|
16-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
module_dir_load() doesn't call init() functions anymore. Added a new
module_dir_init() which does it. This way imap/pop3 can load the modules
before chrooting and initialize them after.
--HG--
branch : HEAD |
c66b01e237d28fac29cd99cd45cd3c303a688d41 |
|
21-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
If the module dir doesn't exist, die only if we were given a list of modules
to load. Otherwise fail silently.
--HG--
branch : HEAD |
b7937cdffd73f48574f5196bac8909fdb24e631c |
|
21-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Give an error if there are duplicate files for a single module. Also if the
module directory can't be opened, die immediately.
--HG--
branch : HEAD |
4c0979bfb3b7b4e7436987760a76bda7e24ce70e |
|
04-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Call deinit() for all modules first before unloading them.
--HG--
branch : HEAD |
c6eca51b54586c1f37cfe39e38c844da3f937a4d |
|
16-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Don't allow giving NULL parameter to array_get() or array_get_modifiable().
--HG--
branch : HEAD |
91dca97b367c54a139c268b56a0c67f564bd9197 |
|
10-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Replaced ARRAY_CREATE() macro with [ipt]_array_init() macros. The macro
has no side effects so it might as well be lowercased.
--HG--
branch : HEAD |
26a8b7deb3a5b6f26f9c4d71538e1248f680e4be |
|
10-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Removed type parameter from ARRAY_CREATE since it's not needed anymore.
--HG--
branch : HEAD |
8d80659e504ffb34bb0c6a633184fece35751b18 |
|
28-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Array API redesigned to work using unions. It now provides type safety
without having to enable DEBUG, as long as the compiler supports typeof().
Its API changed a bit. It now allows directly accessing the array contents,
although that's not necessarily recommended. Changed existing array usage to
be type safe in a bit more places. Removed array_t completely. Also did
s/modifyable/modifiable/.
--HG--
branch : HEAD |
cea70751bde773a28b2d132fdd89c623f005fa7a |
|
16-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Handle errors more correctly. Fixes problems with some OSes.
--HG--
branch : HEAD |
1e5f5629a46b1f471811a71427d2ae9092e2478b |
|
05-May-2006 |
Timo Sirainen <tss@iki.fi> |
Fix for building without modules
--HG--
branch : HEAD |
8e56d284c950a645cac5c4cb2a984b6e65b0cc6a |
|
12-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Allow giving module names in non-basename form.
--HG--
branch : HEAD |
457cafc9e72edb81eacfe88b35f14a75a96cf00a |
|
26-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Replaced mail_use_modules and mail_modules settings with mail_plugins and
mail_plugin_dir. Now instead of loading all plugins from the directory,
you'll have to give a list of plugins to load. If the plugin couldn't be
loaded, the process exits instead of just ignoring the problem (this is
important with ACL plugin).
--HG--
branch : HEAD |
bffca3a9067cf5b756485da1f0bab6eb70b35bda |
|
22-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Modules were loaded in inverse order..
--HG--
branch : HEAD |
8d6cb44a0161d88743756733f83c4fb278485987 |
|
14-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
While casting const pointers to something else, the const was often
unneededly dropped out in the middle of casts.
--HG--
branch : HEAD |
5c1b805ba341f0b9755d0c9036aa5d022c7e18af |
|
06-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Fix to comparing plugin names which begin with "lib".
--HG--
branch : HEAD |
2d4ea3631451f01c6c6afae741584d0972d59cb2 |
|
05-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Added module_dir_deinit().
--HG--
branch : HEAD |
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
deinit, unref, destroy, close, free, etc. functions now take a pointer to
their data pointer, and set it to NULL. This makes double-frees less likely
to cause security holes.
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
42a3441f6906280cbf21ecbd2de74b2b627f4ac7 |
|
14-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Load plugins in sorted order. Prefixed plugins with nn_ set their order.
--HG--
branch : HEAD |
89c6f93d0b12ef0a26f445889a4f78e6c7ad3cfe |
|
11-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
If we see libplugin.so, initialize it with plugin_init(), not
libplugin_init().
--HG--
branch : HEAD |
9d3709cdbcf32829670d3c38762571fb70ac0eaa |
|
14-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
If DEBUG environment is set, module_load_dir() now prints some debugging
--HG--
branch : HEAD |
f808faebb07bb6c60178f1b65e727a36242b05ef |
|
20-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Compile fix when modules were disabled. Patch by Andrey Panin.
--HG--
branch : HEAD |
0d0509258f1ef2cee78ce97d6122c4e52036b51f |
|
30-May-2004 |
Timo Sirainen <tss@iki.fi> |
Don't complain if module directory doesn't exist
--HG--
branch : HEAD |
b371372ac6aec848b3616d9a38e8844dec28dd02 |
|
30-May-2004 |
Timo Sirainen <tss@iki.fi> |
Be quiet when we don't want to call init() / deinit() and they don't exist
--HG--
branch : HEAD |
c0a05ba822189ff4f2c86645c38a5a904943192a |
|
30-May-2004 |
Timo Sirainen <tss@iki.fi> |
Added support for password scheme plugins. auth module dir defaults under
module_dir now.
--HG--
branch : HEAD |
6a125dfb789cc44826e965987576fabb33425c01 |
|
22-Jun-2003 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fixes
--HG--
branch : HEAD |
dadf0f5034bdc9a30b74e5d3d11a884ae04b8810 |
|
30-May-2003 |
Timo Sirainen <tss@iki.fi> |
All systems don't define RTLD_GLOBAL and RTLD_NOW. Default them to 0.
--HG--
branch : HEAD |
615f6231e6f3b30ae6eb038883ea6e8070224cd7 |
|
14-May-2003 |
Timo Sirainen <tss@iki.fi> |
missing
--HG--
branch : HEAD |