bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
1ef9fe877817de76eb38883ccf3833fae60e6865 |
|
05-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: stop including fd-set-nonblock.h & fd-close-on-exec.h directly |
a943ed0f901e312445fd393249b91932797bba79 |
|
03-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: use i_close_fd{,_path}() instead of open-coding them |
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); |
b3d5afcc92e4ce1452db499b3c956d12447babc7 |
|
24-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Allow userdb to return postlogin socket path.
Returning "postlogin=socketpath" as userdb extra field overrides the
postlogin socket path in the service { executable } parameter. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
e7d0bea63a08b08c47c4b5c187d2cb7127859657 |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Make sure *_malloc() calculations won't cause integer overflows. |
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)" |
ef0c36aa8114feee80aa696d9cb8106140371243 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Code cleanup - Use t_strsplit_tabescaped() to avoid str_tabunescape() |
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/' |
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> |
404150692ba0f5e710600220c0dccfbdf1b1d7cc |
|
30-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib-master: Removed fixed length limit for session-id. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
b52230a2649019208b13dcbc0469eecde80f76d2 |
|
02-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
lib-master: If net_connect_unix() fails with EAGAIN, point to a wiki link for reasons. |
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. |
ca4526e3b5fbf5ea3dd477a2098522a44c9ac52c |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
i_set_failure_prefix() now takes printf-like parameters.
This avoids using t_strdup_printf() with it, which was done very commonly. |
d03a871a77f8ec36f48f5fea98d810e51b186fdb |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed str_tabescape_write() to str_append_tabescaped() |
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. |
4307c886579381dbb1897ea1388ae6978c96f560 |
|
27-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Changed i_close_fd() API to set the fd to -1 after closing. |
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. |
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 |
35283613d4c04ce18836e9fc431582c87b3710a0 |
|
26-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
Changes to make static analyzer happier. |
8e78ed2dfcc036bea26b039f1dd10e7f7075b6cc |
|
08-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed passing request data from login process. |
b55f914c0ade77252cfd798ea8eb9a84bda56315 |
|
07-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
Added a "session ID" string for imap/pop3 connections, available in %{session} variable.
The session ID passes through Dovecot IMAP/POP3 proxying to backend server.
The same session ID is can be reused after a long time (currently a bit
under 9 years). |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
53dff078a5f49e9d28d6c81d3437755e27526e3e |
|
20-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Added -t parameter to specify post-login script timeout. |
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. |
a7bbdb8faa0dd2c4e9bb094e06fe705856e39cbf |
|
12-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Prefix log messages with username during auth/post-login lookups. |
f633c533a2c793ae188bff21e173e2ff63ba35f9 |
|
14-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Post-login scripts can now exit to prevent user from logging in, without logging error.
--HG--
branch : HEAD |
bf27c70b784ed67e324ddfe1ad4f46bf571d3a09 |
|
02-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
script-login: Added version check to the protocol.
--HG--
branch : HEAD |
dfb7dad13078cc8674749ac7135436197890bcdc |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed errors with post-login scripts.
--HG--
branch : HEAD |
f89e92a6ff4125dc35b4a0cb976da98b3702395c |
|
06-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Log an error if login client disconnects too early.
--HG--
branch : HEAD |
9ba5c6da815d5d4b43861387dd08fcea321a0423 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Client connection counting fix.
--HG--
branch : HEAD |
8149f4a09d07464f33de747d8e1e620f6d9f7fae |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed checking if login connection was already closed.
--HG--
branch : HEAD |
baca06331782e2752734199486e51a26d7c93d75 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Changed post-login process's client counting to make sense again.
This should also fix problems where a new process isn't created because an
existing one is waiting for auth request reply.
--HG--
branch : HEAD |
e871bfe83e8c5cc7768de30afe0127a3c4373ade |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Login client connection wasn't closed on some error conditions.
--HG--
branch : HEAD |
d795594a018d8dcf47b6b569b8ca20e53e275293 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Crashfix for handling auth master lookup failures.
--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 |
792fd7ace2a676a7db3e9e339c8044c17a6bfeb5 |
|
04-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Disconnect from auth service immediately after receiving reply.
With the current code we can't reuse the connection anyway.
--HG--
branch : HEAD |
f096367f0f7b0e481f8abe0969afdf2d8250057e |
|
28-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed crashing when using post-login scripts.
--HG--
branch : HEAD |
3b1bb5fd562be9d1a5f6894b82d2ba0d529cdcb3 |
|
20-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Make sure IO listeners aren't added back while doing auth lookup.
--HG--
branch : HEAD |
4e56e6408815c04f2e5b904a648a366a2dcbd408 |
|
28-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed using post-login scripts.
--HG--
branch : HEAD |
199d62c0ddfb3c7d634c6940c29869ef56cfd3c4 |
|
27-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Don't leak post-login connections.
--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 |
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939ba |
|
12-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Added back ability to run post-login scripts.
--HG--
branch : HEAD |
b71f152acb8a197d20b709ca74366e6d765bd200 |
|
11-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Check for missing username in lib-master code.
--HG--
branch : HEAD |
47f1c273dfaea552c034ffbecdec096f7cbaef35 |
|
11-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Minor error message fixes.
--HG--
branch : HEAD |
442232f2d1cfdf28f3a18aa00a5c19246d321036 |
|
27-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixes to handling master-login services.
--HG--
branch : HEAD |
3ba9a079592f46e94ce846e5aa80e4d479cd5e41 |
|
27-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Connection counting fixes.
Multiple real connections can come from "login connections". For now don't
even try to count login connections.
--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 |