]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
7 years agoimap, pop3: Don't access login_set.*_socket_path after they're freed from data stack
Timo Sirainen [Thu, 2 Nov 2017 21:01:20 +0000 (23:01 +0200)] 
imap, pop3: Don't access login_set.*_socket_path after they're freed from data stack

Call master_login_init() before master_service_init_finish(), which frees
all the data stack done in initialization.

This didn't normally cause any visible problems, because data stack wasn't
currently being used in a way that the strings were invalidated. However,
it was causing failures if --enable-devel-checks was used.

7 years agoconfig: Properly fix ssl-parameters.dat handling
Aki Tuomi [Thu, 2 Nov 2017 13:45:09 +0000 (15:45 +0200)] 
config: Properly fix ssl-parameters.dat handling

It was done only partially right in a70d867d1fe3584149811c65eb6213deb72be824

7 years agologin-common: client_unref() - always set client pointer to NULL
Timo Sirainen [Wed, 1 Nov 2017 19:44:54 +0000 (21:44 +0200)] 
login-common: client_unref() - always set client pointer to NULL

This is the common coding practise elsewhere as well.

7 years agopop3-login: Cleanup - uncork output unconditionally before client_unref()
Timo Sirainen [Wed, 1 Nov 2017 19:44:23 +0000 (21:44 +0200)] 
pop3-login: Cleanup - uncork output unconditionally before client_unref()

7 years agologin-common: Remove unnecessary client_ref/unref from STARTTLS handling
Timo Sirainen [Wed, 1 Nov 2017 19:41:18 +0000 (21:41 +0200)] 
login-common: Remove unnecessary client_ref/unref from STARTTLS handling

There used to be code between them that could have destroyed the connection,
but that was removed long time ago.

7 years agodoveadm: Send hostname without ":port" as TLS SNI name for outgoing SSL connections.
Timo Sirainen [Tue, 31 Oct 2017 21:51:53 +0000 (23:51 +0200)] 
doveadm: Send hostname without ":port" as TLS SNI name for outgoing SSL connections.

7 years agoconfig: Do not run ssl_dh check always
Aki Tuomi [Thu, 2 Nov 2017 10:00:42 +0000 (12:00 +0200)] 
config: Do not run ssl_dh check always

Do it only when CONFIG_DUMP_FLAG_CHECK_SETTINGS is set. Fixes

"Warning: You can generate it with: dd if=ssl-parameters.dat bs=1 skip=88..."

7 years agodict-redis: Include last_reply in communications failure error
Aki Tuomi [Mon, 3 Jul 2017 08:17:16 +0000 (11:17 +0300)] 
dict-redis: Include last_reply in communications failure error

This way it's possible to determine what went wrong.

7 years agodict-redis: Added support for authentication.
Timo Sirainen [Fri, 24 Jun 2016 09:09:31 +0000 (12:09 +0300)] 
dict-redis: Added support for authentication.

Patch by David Zambonini

7 years agolib: i_stream_w_buffer_realloc() - avoid passing NULL to memcpy()
Timo Sirainen [Wed, 1 Nov 2017 23:34:11 +0000 (01:34 +0200)] 
lib: i_stream_w_buffer_realloc() - avoid passing NULL to memcpy()

It happened only with size=0, so it shouldn't have mattered much.

7 years agoimap-proxy: Don't discard the first pipelined command after LOGIN
Timo Sirainen [Wed, 1 Nov 2017 22:03:57 +0000 (00:03 +0200)] 
imap-proxy: Don't discard the first pipelined command after LOGIN

7 years agolib-storage: imapc - Fix spelling mistakes
Aki Tuomi [Wed, 1 Nov 2017 17:10:19 +0000 (19:10 +0200)] 
lib-storage: imapc - Fix spelling mistakes

Original work by @jsoref

7 years agolib-fs: Fix spelling mistakes
Aki Tuomi [Wed, 1 Nov 2017 17:10:07 +0000 (19:10 +0200)] 
lib-fs: Fix spelling mistakes

Original work by @jsoref

7 years agotest-quota: Fix spelling mistakes
Aki Tuomi [Wed, 1 Nov 2017 17:09:55 +0000 (19:09 +0200)] 
test-quota: Fix spelling mistakes

Original work by @jsoref

7 years agolazy-expunge: Fix spelling mistakes
Aki Tuomi [Wed, 1 Nov 2017 17:09:43 +0000 (19:09 +0200)] 
lazy-expunge: Fix spelling mistakes

Original work by @jsoref

7 years agoplugin-fts: Fix spelling mistakes
Aki Tuomi [Wed, 1 Nov 2017 17:09:28 +0000 (19:09 +0200)] 
plugin-fts: Fix spelling mistakes

Original work by @jsoref

7 years agofts-squat: Fix spelling mistakes
Aki Tuomi [Wed, 1 Nov 2017 17:09:15 +0000 (19:09 +0200)] 
fts-squat: Fix spelling mistakes

Original work by @jsoref

7 years agoimap: Fix spelling mistakes
Aki Tuomi [Wed, 1 Nov 2017 17:09:04 +0000 (19:09 +0200)] 
imap: Fix spelling mistakes

Original work by @jsoref

7 years agodirector: Fix spelling mistakes
Aki Tuomi [Wed, 1 Nov 2017 17:08:54 +0000 (19:08 +0200)] 
director: Fix spelling mistakes

Original work by @jsoref

7 years agomech-apop: Fix spelling mistake
Aki Tuomi [Wed, 1 Nov 2017 17:08:40 +0000 (19:08 +0200)] 
mech-apop: Fix spelling mistake

Original work by @jsoref

7 years agoman: Fix spelling mistakes
Aki Tuomi [Wed, 1 Nov 2017 17:08:30 +0000 (19:08 +0200)] 
man: Fix spelling mistakes

Original work by @jsoref

7 years agoglobal: Fix spelling mistakes in comments
Aki Tuomi [Wed, 1 Nov 2017 17:07:26 +0000 (19:07 +0200)] 
global: Fix spelling mistakes in comments

Original work by @andreasschulze and @jsoref

7 years agofts-lucene: Do not clobber return value
Aki Tuomi [Wed, 1 Nov 2017 16:04:57 +0000 (18:04 +0200)] 
fts-lucene: Do not clobber return value

Found by scanbuild

7 years agodirector: Show each director connection in doveadm DIRECTOR-LIST
Timo Sirainen [Thu, 26 Oct 2017 10:56:25 +0000 (13:56 +0300)] 
director: Show each director connection in doveadm DIRECTOR-LIST

Previously the host was shown only once, regardless of how many connections
it had. This especially helps when there are just two directors, but also
can be useful when showing incoming/outgoing connections that are still
in handshaking phase.

7 years agodoveadm director ring status: Add more fields related to connection status
Timo Sirainen [Thu, 26 Oct 2017 11:10:51 +0000 (14:10 +0300)] 
doveadm director ring status: Add more fields related to connection status

7 years agodirector: Track show long the last ring sync took.
Timo Sirainen [Thu, 26 Oct 2017 11:18:50 +0000 (14:18 +0300)] 
director: Track show long the last ring sync took.

7 years agodirector: Track connections' last ping time
Timo Sirainen [Thu, 26 Oct 2017 11:07:56 +0000 (14:07 +0300)] 
director: Track connections' last ping time

7 years agodirector: Add director_connection_get_status()
Timo Sirainen [Thu, 26 Oct 2017 10:07:30 +0000 (13:07 +0300)] 
director: Add director_connection_get_status()

Can be used to access connection-specific status information.

7 years agodirector: Fix updating director connection's last_output timestamp
Timo Sirainen [Thu, 26 Oct 2017 10:02:32 +0000 (13:02 +0300)] 
director: Fix updating director connection's last_output timestamp

It was previously updated only in ostream's flush callback, which was called
only when there were a lot of output. This only caused the "last output"
timestamp in disconnection log lines to be wrong.

7 years agodoveadm director: Parse timestamp parameters with str_to_time()
Timo Sirainen [Thu, 26 Oct 2017 09:44:34 +0000 (12:44 +0300)] 
doveadm director: Parse timestamp parameters with str_to_time()

7 years agodirector: Close director connection immediately when output buffer is full
Timo Sirainen [Wed, 25 Oct 2017 14:22:42 +0000 (17:22 +0300)] 
director: Close director connection immediately when output buffer is full

Only the ostream was closed, which didn't actually cause the disconnection
until the other side closed the connection.

7 years agodirector: Add director_output_buffer_size setting
Timo Sirainen [Wed, 25 Oct 2017 14:18:03 +0000 (17:18 +0300)] 
director: Add director_output_buffer_size setting

This allows configuring the max buffer size for outgoing connections.
Previously it was hardcoded to 10 MB, which wasn't necessarily enough for
very busy directors.

7 years agolib-ssl-iostream: Verify SSL server's hostname against cert if it's non-NULL
Timo Sirainen [Tue, 31 Oct 2017 21:37:44 +0000 (23:37 +0200)] 
lib-ssl-iostream: Verify SSL server's hostname against cert if it's non-NULL

The hostname verification was skipped when handshake-callback wasn't used.
All of the existing code used the callback though, so this doesn't fix
any bugs.

7 years agolib-ssl-iostream: Fix checking cert validity when handshake callback isn't used
Timo Sirainen [Tue, 31 Oct 2017 17:49:56 +0000 (19:49 +0200)] 
lib-ssl-iostream: Fix checking cert validity when handshake callback isn't used

7 years agolib-ssl-iostream: Split host to connected_host and sni_host
Timo Sirainen [Wed, 1 Nov 2017 10:58:46 +0000 (12:58 +0200)] 
lib-ssl-iostream: Split host to connected_host and sni_host

Using the same variable for both was causing confusion.

7 years agoglobal: start relying on [io]_stream_close(NULL) being a no-op
Josef 'Jeff' Sipek [Fri, 22 Sep 2017 08:38:10 +0000 (11:38 +0300)] 
global: start relying on [io]_stream_close(NULL) being a no-op

Cleanup performed with the following semantic patch (and a bit of
hand-editing):

@@
expression E;
@@

- if (E != NULL) {
-  i_stream_close(E);
- }
+ i_stream_close(E);

@@
expression E;
@@

- if (E != NULL) {
-  o_stream_close(E);
- }
+ o_stream_close(E);

7 years agolib: [io]_stream_close(NULL) should be no-ops
Josef 'Jeff' Sipek [Fri, 22 Sep 2017 08:29:35 +0000 (11:29 +0300)] 
lib: [io]_stream_close(NULL) should be no-ops

7 years agolib-index: Fix -Wstrict-bool warnings with --enable-devel-checks
Timo Sirainen [Wed, 1 Nov 2017 12:40:51 +0000 (14:40 +0200)] 
lib-index: Fix -Wstrict-bool warnings with --enable-devel-checks

7 years agoglobal: Use i_stream_read_memarea() wherever possible
Timo Sirainen [Fri, 27 Oct 2017 18:20:36 +0000 (21:20 +0300)] 
global: Use i_stream_read_memarea() wherever possible

7 years agolib: i_stream_compress() - assert-crash if trying to compress shared memarea
Timo Sirainen [Fri, 27 Oct 2017 18:32:10 +0000 (21:32 +0300)] 
lib: i_stream_compress() - assert-crash if trying to compress shared memarea

The caller is always expected to check the refcount before calling this.

7 years agolib: i_stream_read() - Add buffer validity checks if DEBUG is enabled
Timo Sirainen [Fri, 27 Oct 2017 18:22:04 +0000 (21:22 +0300)] 
lib: i_stream_read() - Add buffer validity checks if DEBUG is enabled

7 years agolib: i_stream_read() - Use snapshots
Timo Sirainen [Fri, 27 Oct 2017 18:17:23 +0000 (21:17 +0300)] 
lib: i_stream_read() - Use snapshots

This guarantees that data returned by i_stream_get_data() won't be freed
until the next i_stream_read() returns >0. This is mainly important,
because often the error handling for <=0 doesn't update the buffer
pointers correctly and it leads to complicated bugs where already freed
memory is attempted to be read (but never written).

7 years agolib: Use ISTREAM_CREATE_FLAG_NOOP_SNAPSHOT where useful
Timo Sirainen [Fri, 27 Oct 2017 18:13:40 +0000 (21:13 +0300)] 
lib: Use ISTREAM_CREATE_FLAG_NOOP_SNAPSHOT where useful

7 years agolib: Add ISTREAM_CREATE_FLAG_NOOP_SNAPSHOT flag
Timo Sirainen [Fri, 27 Oct 2017 18:13:20 +0000 (21:13 +0300)] 
lib: Add ISTREAM_CREATE_FLAG_NOOP_SNAPSHOT flag

7 years agoglobal: Add flags parameter to i_stream_create() and set it to 0
Timo Sirainen [Fri, 27 Oct 2017 18:08:26 +0000 (21:08 +0300)] 
global: Add flags parameter to i_stream_create() and set it to 0

This just changes the API - the following changes add the new flag.

7 years agolib-ssl-iostream: Simplify istream-openssl
Timo Sirainen [Fri, 27 Oct 2017 18:28:51 +0000 (21:28 +0300)] 
lib-ssl-iostream: Simplify istream-openssl

Partially reverts 739125f23e3312045e620014812fe2249a309cc4. This is no
longer needed because of the io_set_pending() changes.

7 years agolib-compression: Use i_stream_try_alloc*()
Timo Sirainen [Fri, 27 Oct 2017 17:49:07 +0000 (20:49 +0300)] 
lib-compression: Use i_stream_try_alloc*()

7 years agolib: Add i_stream_try_alloc_avoid_compress()
Timo Sirainen [Fri, 27 Oct 2017 17:45:41 +0000 (20:45 +0300)] 
lib: Add i_stream_try_alloc_avoid_compress()

7 years agolib-compression: istream-lz4 - Use i_stream_alloc()
Timo Sirainen [Fri, 27 Oct 2017 17:38:49 +0000 (20:38 +0300)] 
lib-compression: istream-lz4 - Use i_stream_alloc()

7 years agolib-mail: istream-attachment-extractor - Don't modify buffer during failure
Timo Sirainen [Thu, 26 Oct 2017 15:36:09 +0000 (18:36 +0300)] 
lib-mail: istream-attachment-extractor - Don't modify buffer during failure

If i_stream_read() returns -1 because the attachment file couldn't be
created, don't add the trailing data to the main istream. It's not useful,
and the following extra checks will cause it to assert-crash.

7 years agolib: istream-mmap - Use memarea API
Timo Sirainen [Fri, 8 Sep 2017 11:59:37 +0000 (14:59 +0300)] 
lib: istream-mmap - Use memarea API

7 years agolib: istream-seekable - Implement snapshot()
Timo Sirainen [Thu, 26 Oct 2017 14:12:04 +0000 (17:12 +0300)] 
lib: istream-seekable - Implement snapshot()

7 years agolib: istream-seekable - Change to use i_stream_*alloc()
Timo Sirainen [Thu, 26 Oct 2017 13:37:49 +0000 (16:37 +0300)] 
lib: istream-seekable - Change to use i_stream_*alloc()

This simplifies implementing the snapshotting.

7 years agolib: istream-seekable - Fix fd leak if initial temp file couldn't be read back
Timo Sirainen [Thu, 26 Oct 2017 14:10:57 +0000 (17:10 +0300)] 
lib: istream-seekable - Fix fd leak if initial temp file couldn't be read back

That should normally never happen.

7 years agolib: Add istream.snapshot() method for referencing the current memarea
Timo Sirainen [Thu, 26 Oct 2017 12:17:04 +0000 (15:17 +0300)] 
lib: Add istream.snapshot() method for referencing the current memarea

It will be used by following commits.

7 years agolib-test: istream-test - use memarea API
Timo Sirainen [Thu, 26 Oct 2017 12:22:26 +0000 (15:22 +0300)] 
lib-test: istream-test - use memarea API

7 years agolib: Use memarea for default istream memory allocations.
Timo Sirainen [Fri, 8 Sep 2017 11:25:41 +0000 (14:25 +0300)] 
lib: Use memarea for default istream memory allocations.

7 years agoglobal: Use i_stream_free_buffer() instead of freeing w_buffer directly
Timo Sirainen [Thu, 26 Oct 2017 13:25:51 +0000 (16:25 +0300)] 
global: Use i_stream_free_buffer() instead of freeing w_buffer directly

7 years agolib: Add i_stream_free_buffer() to free i_stream_*alloc()ed memory
Timo Sirainen [Thu, 26 Oct 2017 13:24:50 +0000 (16:24 +0300)] 
lib: Add i_stream_free_buffer() to free i_stream_*alloc()ed memory

7 years agolib: Add memarea API
Timo Sirainen [Fri, 8 Sep 2017 10:33:27 +0000 (13:33 +0300)] 
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.

7 years agolib: istream-chain/concat cleanup - return early if no new data is read
Timo Sirainen [Thu, 26 Oct 2017 11:56:26 +0000 (14:56 +0300)] 
lib: istream-chain/concat cleanup - return early if no new data is read

There's no need to change the buffer or other variables. This simplifies
the following changes.

This cleanup is identical for istream-concat and istream-chain.

7 years agolib-mail: istream-header-filter - Fix header read() when max_buffer_size=0
Timo Sirainen [Fri, 20 Jan 2017 15:34:50 +0000 (17:34 +0200)] 
lib-mail: istream-header-filter - Fix header read() when max_buffer_size=0

If the buffer was too small to read anything into it, read_header() returned
-2, but then it continued reading the header as if it was the body already.
This should instead be an error situation - max buffer size just shouldn't be
0 at this point.

This was originally changed in a72355fef49c512c13b7d8c3e07f4f76ebd57a10 as
some kind of a workaround, but since then we implemented support for reading
a mixed header/body in c2afdbf963d0564a542d71ca784deb0c2f7776d0.

7 years agoimap: Set max buffer size for CATENATE istream-chain
Timo Sirainen [Mon, 30 Oct 2017 11:58:54 +0000 (13:58 +0200)] 
imap: Set max buffer size for CATENATE istream-chain

This fixes a crash with mbox when nonexistent CATENATE URL is attempted to
be used. The istream doesn't get any size, and istream-header-filter panics
due to having reached the maximum buffer size (0), even though the stream is
empty and there's nothing to read.

7 years agolib: Add assert to io_stream_ref()
Timo Sirainen [Fri, 20 Jan 2017 14:28:53 +0000 (16:28 +0200)] 
lib: Add assert to io_stream_ref()

This makes an assert-crash likely to happen if iostream was already freed.

7 years agodoveadm: Ignore errors also on outgoing SSL connection ostreams
Timo Sirainen [Wed, 1 Nov 2017 11:01:03 +0000 (13:01 +0200)] 
doveadm: Ignore errors also on outgoing SSL connection ostreams

Setting the errors as ignored on the plain ostream was done too late, so ssl
ostream didn't inherit the error handling flag.

7 years agolib: iostream-proxy - Specify what failed in completion callback parameter
Timo Sirainen [Sun, 29 Oct 2017 22:30:13 +0000 (00:30 +0200)] 
lib: iostream-proxy - Specify what failed in completion callback parameter

7 years agolib: iostream-pump - Specify what failed in completion callback parameter
Timo Sirainen [Sun, 29 Oct 2017 22:16:35 +0000 (00:16 +0200)] 
lib: iostream-pump - Specify what failed in completion callback parameter

This makes it easier for the caller to find out whether the failure was due
to istream or ostream.

7 years agolib: iostream-proxy - Add iostream_proxy_is_waiting_output()
Timo Sirainen [Sun, 29 Oct 2017 21:53:16 +0000 (23:53 +0200)] 
lib: iostream-proxy - Add iostream_proxy_is_waiting_output()

7 years agolib: iostream-pump - Add iostream_pump_is_waiting_output()
Timo Sirainen [Sun, 29 Oct 2017 21:53:00 +0000 (23:53 +0200)] 
lib: iostream-pump - Add iostream_pump_is_waiting_output()

7 years agolib: iostream-pump - Fix crash in iostream_pump_switch_ioloop() if io is NULL
Timo Sirainen [Sun, 29 Oct 2017 23:07:36 +0000 (01:07 +0200)] 
lib: iostream-pump - Fix crash in iostream_pump_switch_ioloop() if io is NULL

This would happen when the pump's ostream is full and it has stopped
listening for input.

7 years agolib: iostream-pump - Cork the ostream when writing
Timo Sirainen [Sun, 29 Oct 2017 21:28:38 +0000 (23:28 +0200)] 
lib: iostream-pump - Cork the ostream when writing

This reduces latency for TCP connections by disabling Nagle algorithm.

7 years agodoveadm-server: Deinitialize log proxying before closing SSL iostream
Timo Sirainen [Tue, 31 Oct 2017 18:05:19 +0000 (20:05 +0200)] 
doveadm-server: Deinitialize log proxying before closing SSL iostream

Otherwise the SSL iostream destroying may trigger debug/error logging,
which attempts to proxy logs when the stream is already closed. This
caused a panic.

7 years agodbox: Don't finish dbox's ostream when mail is saved
Timo Sirainen [Tue, 31 Oct 2017 17:24:21 +0000 (19:24 +0200)] 
dbox: Don't finish dbox's ostream when mail is saved

Fixes assert-crash when saving mail when using zlib plugin.

7 years agolib-compression: Fix unit test to not crash
Timo Sirainen [Tue, 31 Oct 2017 15:27:05 +0000 (17:27 +0200)] 
lib-compression: Fix unit test to not crash

7 years agolib-mail: ostream-dot - Set o_stream_set_finish_also_parent(FALSE) by default
Timo Sirainen [Tue, 31 Oct 2017 15:24:06 +0000 (17:24 +0200)] 
lib-mail: ostream-dot - Set o_stream_set_finish_also_parent(FALSE) by default

ostream-dot is always used inside another ostream to implement some kind of
data escaping. The ostream-dot always has to be finished to write the "."
line, but the caller never wants it to finish the parent stream.

7 years agolib-fs: fs-metawrap - Don't try to write to an already finished ostream
Timo Sirainen [Tue, 31 Oct 2017 15:20:22 +0000 (17:20 +0200)] 
lib-fs: fs-metawrap - Don't try to write to an already finished ostream

Fixes a crash after recent changes when trying to write an empty file via
fs-metawrap.

7 years agolib: connection - Use o_stream_set_finish_via_child(FALSE)
Timo Sirainen [Tue, 31 Oct 2017 15:09:47 +0000 (17:09 +0200)] 
lib: connection - Use o_stream_set_finish_via_child(FALSE)

This allows o_stream_finish() calls on child streams without closing this
parent stream. Since the stream has no error checking by default anyway,
this allows the connection stream to be used more easily.

7 years agolib: Add o_stream_set_finish_also_parent() and _finish_via_child()
Timo Sirainen [Tue, 31 Oct 2017 15:07:44 +0000 (17:07 +0200)] 
lib: Add o_stream_set_finish_also_parent() and _finish_via_child()

These allow controlling on both directions whether o_stream_finish() should
be finishing the parent stream. If either one is set to FALSE, the parent
stream isn't finished. Which one of these to use depends on the situation.

7 years agoglobal: Use o_stream_flush_parent()
Timo Sirainen [Tue, 31 Oct 2017 13:05:01 +0000 (15:05 +0200)] 
global: Use o_stream_flush_parent()

7 years agolib: Add o_stream_flush_parent()
Timo Sirainen [Tue, 31 Oct 2017 13:00:51 +0000 (15:00 +0200)] 
lib: Add o_stream_flush_parent()

7 years agolib: istream-base64-encoder - Fix getting size for empty stream
Timo Sirainen [Tue, 31 Oct 2017 15:42:15 +0000 (17:42 +0200)] 
lib: istream-base64-encoder - Fix getting size for empty stream

7 years agolib-master: Use skip_crl_check for ssl context
Aki Tuomi [Tue, 31 Oct 2017 10:16:41 +0000 (12:16 +0200)] 
lib-master: Use skip_crl_check for ssl context

7 years agolib-master: Load SSL module if wanted by service
Aki Tuomi [Mon, 16 Oct 2017 07:56:17 +0000 (10:56 +0300)] 
lib-master: Load SSL module if wanted by service

7 years agolib-master: Add master_service_ssl_settings_to_iostream_set
Aki Tuomi [Mon, 16 Oct 2017 07:47:36 +0000 (10:47 +0300)] 
lib-master: Add master_service_ssl_settings_to_iostream_set

7 years agolib-master: Support alternative cert in master_service_ssl_ctx_init
Aki Tuomi [Tue, 31 Oct 2017 08:10:39 +0000 (10:10 +0200)] 
lib-master: Support alternative cert in master_service_ssl_ctx_init

7 years agolib-ssl-iostream: Seed OpenSSL RNG earlier
Aki Tuomi [Tue, 24 Oct 2017 11:43:51 +0000 (14:43 +0300)] 
lib-ssl-iostream: Seed OpenSSL RNG earlier

Make sure we give the RNG a chance to
seed before we chroot.

7 years agolib-ssl-iostream: Expose ssl_module_load
Aki Tuomi [Thu, 7 Sep 2017 07:19:36 +0000 (10:19 +0300)] 
lib-ssl-iostream: Expose ssl_module_load

We need to load SSL module before we chroot in
login-common.

7 years agolib-ssl-iostream: Use named initializers
Aki Tuomi [Mon, 3 Oct 2016 09:04:26 +0000 (12:04 +0300)] 
lib-ssl-iostream: Use named initializers

7 years agolib-ssl-iostream: Remove input_handler flag
Aki Tuomi [Mon, 26 Sep 2016 10:55:17 +0000 (13:55 +0300)] 
lib-ssl-iostream: Remove input_handler flag

It is no longer needed after 87da941c

7 years agolib-ssl-iostream: Add get_compression accessor
Aki Tuomi [Mon, 26 Sep 2016 10:52:33 +0000 (13:52 +0300)] 
lib-ssl-iostream: Add get_compression accessor

This is needed by login-common

7 years agolib-ssl-iostream: Close ostream before istream
Aki Tuomi [Mon, 3 Oct 2016 10:39:35 +0000 (13:39 +0300)] 
lib-ssl-iostream: Close ostream before istream

If i_stream is autoclose, then o_stream
close will fail if done after i_stream
close.

7 years agolib-ssl-iostream: Allow skipping CRL check
Aki Tuomi [Mon, 3 Oct 2016 09:38:35 +0000 (12:38 +0300)] 
lib-ssl-iostream: Allow skipping CRL check

7 years agolib-ssl-iostream: Add alternate certificate support
Aki Tuomi [Mon, 30 Oct 2017 12:08:23 +0000 (14:08 +0200)] 
lib-ssl-iostream: Add alternate certificate support

7 years agoglobal: Splice cert into separate struct from iostream_ssl_settings
Aki Tuomi [Mon, 30 Oct 2017 12:06:36 +0000 (14:06 +0200)] 
global: Splice cert into separate struct from iostream_ssl_settings

7 years agolib-fs: test-fs-posix - Fix checking whether unlink_directory() failed
Timo Sirainen [Tue, 31 Oct 2017 15:01:26 +0000 (17:01 +0200)] 
lib-fs: test-fs-posix - Fix checking whether unlink_directory() failed

7 years agoman: Update manpage for mailbox delete command
Aki Tuomi [Mon, 30 Oct 2017 18:30:03 +0000 (20:30 +0200)] 
man: Update manpage for mailbox delete command

7 years agolib: Don't use NEEDS_LOCAL_CREDS undefined
Martti Rannanjärvi [Mon, 30 Oct 2017 17:29:02 +0000 (19:29 +0200)] 
lib: Don't use NEEDS_LOCAL_CREDS undefined

7 years agoglobal: Rename i_stream_is_eof() to i_stream_read_eof()
Timo Sirainen [Mon, 30 Oct 2017 14:06:39 +0000 (16:06 +0200)] 
global: Rename i_stream_is_eof() to i_stream_read_eof()

This describes its behavior a bit better.

7 years agoglobal: Avoid i_stream_is_eof() where it's not necessary
Timo Sirainen [Mon, 30 Oct 2017 14:11:43 +0000 (16:11 +0200)] 
global: Avoid i_stream_is_eof() where it's not necessary

7 years agolib: Improve i_stream_is_eof() comment
Timo Sirainen [Mon, 30 Oct 2017 14:06:21 +0000 (16:06 +0200)] 
lib: Improve i_stream_is_eof() comment