]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: Use client SSL certificate and key settings from lib-master.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 28 Feb 2018 17:58:42 +0000 (18:58 +0100)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 12 Mar 2018 14:28:40 +0000 (16:28 +0200)
src/login-common/login-proxy.c
src/login-common/login-settings.c
src/login-common/login-settings.h

index ead4c054448ad34942e29d4b59a29a530beeff2a..645943258a6f93b210e7c11f41ba0d244ba4655e 100644 (file)
@@ -696,11 +696,6 @@ int login_proxy_starttls(struct login_proxy *proxy)
           unexpected hangs when login process handles multiple clients. */
        ssl_set.ca_file = ssl_set.ca_dir = NULL;
 
-       if (proxy->client->set->ssl_client_cert[0] != '\0')
-               ssl_set.cert.cert = proxy->client->set->ssl_client_cert;
-       if (proxy->client->set->ssl_client_key[0] != '\0')
-               ssl_set.cert.key = proxy->client->set->ssl_client_key;
-
        io_remove(&proxy->server_io);
        if (ssl_iostream_client_context_cache_get(&ssl_set, &ssl_ctx, &error) < 0) {
                client_log_err(proxy->client, t_strdup_printf(
index b6d669aae4c50d60304879683be4a16ffe701448..8741e42a817dc38bdca232b205b3dd19bfff99e0 100644 (file)
@@ -32,8 +32,6 @@ static const struct setting_define login_setting_defines[] = {
        DEF(SET_TIME, login_proxy_max_disconnect_delay),
        DEF(SET_STR, director_username_hash),
 
-       DEF(SET_STR, ssl_client_cert),
-       DEF(SET_STR, ssl_client_key),
        DEF(SET_BOOL, auth_ssl_require_client_cert),
        DEF(SET_BOOL, auth_ssl_username_from_cert),
 
@@ -60,8 +58,6 @@ static const struct login_settings login_default_settings = {
        .login_proxy_max_disconnect_delay = 0,
        .director_username_hash = "%u",
 
-       .ssl_client_cert = "",
-       .ssl_client_key = "",
        .auth_ssl_require_client_cert = FALSE,
        .auth_ssl_username_from_cert = FALSE,
 
index 8381d2ecc875d8372d4b2921e146bdf3decb80d9..55639447bd0c3182fbafbac3c9dd52b9037acdee 100644 (file)
@@ -15,8 +15,6 @@ struct login_settings {
        unsigned int login_proxy_max_disconnect_delay;
        const char *director_username_hash;
 
-       const char *ssl_client_cert;
-       const char *ssl_client_key;
        bool auth_ssl_require_client_cert;
        bool auth_ssl_username_from_cert;