Mercurial > dovecot > core-2.2
changeset 21917:7a419cf835f0
auth: passdb imap: Use ssl_client_ca_* settings.
The args = ssl_ca_dir=.. setting still overrides the ssl_client_ca_dir.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 07 Apr 2017 15:47:27 +0300 |
parents | 33dda485596b |
children | 2a1ffa18d91a |
files | src/auth/passdb-imap.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/passdb-imap.c Fri Apr 07 09:34:39 2017 +0300 +++ b/src/auth/passdb-imap.c Fri Apr 07 15:47:27 2017 +0300 @@ -86,6 +86,9 @@ DNS_CLIENT_SOCKET_NAME, NULL); set.password = password; set.max_idle_time = IMAPC_DEFAULT_MAX_IDLE_TIME; + if (set.ssl_ca_dir == NULL) + set.ssl_ca_dir = auth_request->set->ssl_client_ca_dir; + set.ssl_ca_file = auth_request->set->ssl_client_ca_file; if (module->set_have_vars) { str = t_str_new(128);