bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
be5773cb4d6edae8a5d9f300c3c7375cdd33826e |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on [io]_stream_destroy(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- i_stream_destroy(&E);
- }
+ i_stream_destroy(&E);
@@
expression E;
@@
- if (E != NULL) {
- o_stream_destroy(&E);
- }
+ o_stream_destroy(&E); |
0d1b8b6bec79746c5d89d57dd8c1688946bd9237 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on timeout_remove(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- timeout_remove(&E);
- }
+ timeout_remove(&E); |
5f1d689131a75c39f064cbd4202373e7edf78f18 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on io_remove{,_closed}(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- io_remove(&E);
- }
+ io_remove(&E);
@@
expression E;
@@
- if (E != NULL) {
- io_remove_closed(&E);
- }
+ io_remove_closed(&E); |
191153d1a5b0eb0c129139570e3aa5212f28d2ac |
|
18-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: use i_rand_limit() and i_rand_minmax() when possible |
62461eb609e1d852e027cf4e07d30d51288678a2 |
|
07-Sep-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Replace rand with i_rand |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
7a60e1dc9e93ef3f7c7fe1af6385a0bfa1e31bc3 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Replaced t_strsplit_tab() calls with t_strsplit_tabescaped()
This is useful especially in auth code to support LFs in extra fields.
Other pieces of code were also tab-escaping strings, but never unescaping
them. Usually it didn't matter, because nobody would use the escaped
characters. Still, the code wasn't exactly behaving correctly.
One downside to this change is that it's now possible to pass through TABs,
CRs and LFs through the various protocols. In theory this shouldn't cause
any problems, but combined with other bugs this could trigger some security
problems. |
25b183ad22ac7e7603693ebe44ebedf157aa5a46 |
|
16-Aug-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-master: Check for NULL in input/output
Makes static analysers happy |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
e93184a9055c2530366dfe617e07199603c399dd |
|
06-Jun-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: remove autoclose parameter from [io]_stream_create_fd
Use [io]_stream_create_fd_autoclose() for autoclose. |
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. |
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> |
fd05c47210cad1f6d8effbda5cba7f7d938ca9a0 |
|
13-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
Added several asserts to make sure duplicates aren't inserted into hash table.
The previous commit hopefully fixed the problem causing auth and login
processes to sometimes die with "key not found from hash" error, but if not
maybe one of these will catch it. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
e3ea9f8db1626f3143665882a0500cfd7f9ab3d2 |
|
02-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
auth: Added %{session_pid} variable for userdb lookups in login requests.
session_pid is now always sent to auth process. A new request_auth_token
parameter was added to specify if auth_token should be returned or not. |
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. |
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. :) |
ab90f702ceedb7ba445a9a592be0b213b27cbafa |
|
14-Sep-2012 |
Stephan Bosch <stephan@rename-it.nl> |
Added support to perform token-based service process authentication.
Creates hidden SASL method DOVECOT-TOKEN. This method is not available on
the normal auth login socket and thus never presented to clients.
Creates new auth socket type 'tokenlogin'. This otherwise normal login
socket only offers authentication using the DOVECOT-TOKEN mechanism.
Creates new token-login directory in base_dir to separate token logins from
normal logins. This directory is otherwise completely identical to the
normal login dir, i.e. it contains sockets for the service backends, used
to chroot login processes to, etc.
Makes default login socket configurable.
Performs some minor changes to src/login-common to build very sparse
protocols, e.g. avoid the need to implement methods that are not needed. |
a75d470c9223a75801418fcdda258885c36317e0 |
|
20-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Reverted "support for non-pointers" part of the hash table API changes.
Originally I wrote it using clang, which didn't give as many warnings as gcc
did. I guess this way is safer anyway.. |
678d0463849ba777106eb7875f27db07a5d8e3df |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Hash table API is now (mostly) type safe. |
7536dca18968a279b69c685eedda205bee228fd4 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
hash_table_create(): Removed table_pool parameter.
Every single caller was using default_pool there, so there's no point in
having it. |
e2a88d59c0d47d63ce1ad5b1fd95e487124a3fd4 |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added o_stream_nsend*() and related functions to make delayed error handling safer.
Once o_stream_nsend*() is called, o_stream_nfinish() must be called before
stream is destroyed to finish checking if there were any errors. If
something failed and the stream is just wanted to be closed,
o_stream_ignore_last_errors() can be called.
For streams where errors don't really make any difference (network sockets)
you can call o_stream_set_no_error_handling() immediately after creating the
stream. |
3c296d819c54e21ce05c3d2eeeedc79be42ac593 |
|
19-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
Use t_strsplit_tab() wherever possible |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
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. |
5226c54b854ddb27f0004c73fcc2eb837c4efe53 |
|
04-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Error message typofix. |
bdb9f7f7fbf828fb85a393bd2803167b1bb8ff0d |
|
03-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
Log login pid/id for internal failures to allow matching errors between processes. |
65565b19bcee898d814189064e7fdd753732ccbc |
|
02-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Try to use auth request ID numbers from wider range to ease debugging. |
93f4e5baf69368609ab4071e8a868775a19a38ed |
|
02-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added extra debug info for a "user not found" error message. |
178839556a2bf4608e9a186efb78d9b054e6d153 |
|
17-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: If auth master login fails, make sure error message is logged. |
e599fa1e10c2880627927750daa20c9c2f22612b |
|
09-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Don't wait for handshake before sending auth-master request. |
c4c8182e19f1a74706473ee88aa4701458ea5b1d |
|
02-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Stop accepting new connections after auth-master gets disconnected. |
cb51bd239664be06c5c20d6fc0b7091f005204b8 |
|
21-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fix. |
b6455d61b4eeb69fe1f32d2352caa75b6051be76 |
|
23-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: If auth server is restarted, still log a warning about aborted auth request. |
f1dd517d17d5d294cd17fa32304714c22e617f87 |
|
20-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: When finishing auth, don't send REQUEST if auth process has restarted.
This avoids unnecessary "Master requested auth for nonexistent client" errors
when auth process restarts (crashes). |
d99107ddf4d9bccb710994482daf65276a9d6321 |
|
04-May-2010 |
Timo Sirainen <tss@iki.fi> |
auth/login related timeouts are now in one place and they make more sense.
Most importantly now auth client doesn't abort lookup before server does.
--HG--
branch : HEAD |
a175496735a7a4c9536cdc217c1c9990c1df81c1 |
|
03-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Don't crash after timeouting an auth-master request.
--HG--
branch : HEAD |
871c55e1dc8e7f84dced2e9b22225d261747bb63 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added timeout for auth master lookups.
--HG--
branch : HEAD |
9261dbf0675204898c6557591c7aa376e23a52b2 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Started using str_to_*() functions instead of libc's ones.
--HG--
branch : HEAD |
3b22894b8805b186c73d8b754001e8d7e944be85 |
|
31-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Added support for userdb lookup to fail with a reason (many API changes).
--HG--
branch : HEAD |
647eed98cb795ee9e42911750402dab720b57514 |
|
27-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
auth master lookups: If request isn't found, return FAIL instead of NOTFOUND.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
7891c8e6debdcfec552cb1beea2a0230fe89957b |
|
14-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Close auth/config connections when we stop accepting more connections.
--HG--
branch : HEAD |
442232f2d1cfdf28f3a18aa00a5c19246d321036 |
|
27-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixes to handling master-login services.
--HG--
branch : HEAD |
21c1655dbc5fe861a152dc9a8a388d0d64f5ae20 |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Use net_connect_unix_with_retries() instead of duplicating the code everywhere.
--HG--
branch : HEAD |
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3 |
|
20-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Redesigned how login process passes connections to mail processes and changed related APIs.
Master process is no longer in the middle.
--HG--
branch : HEAD |