]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: Added flag to client that indicates whether connection is secured using...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 9 Dec 2017 01:33:16 +0000 (02:33 +0100)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 11 Dec 2017 13:44:18 +0000 (15:44 +0200)
src/login-common/client-common.c
src/login-common/client-common.h

index 7171a41e716fdd10dfc81d026ad9a3d0d30aec58..da4dc33ec7927096dc487a28c87fd8fc752e7874 100644 (file)
@@ -194,6 +194,7 @@ client_alloc(int fd, pool_t pool,
 
        if (conn->proxied) {
                client->secured = conn->proxy.ssl || client->trusted;
+               client->ssl_secured = conn->proxy.ssl;
                client->local_name = conn->proxy.hostname;
                client->client_cert_common_name = conn->proxy.cert_common_name;
        } else {
@@ -499,6 +500,7 @@ int client_init_ssl(struct client *client)
 
        client->tls = TRUE;
        client->secured = TRUE;
+       client->ssl_secured = TRUE;
 
        if (client->starttls) {
                io_remove(&client->io);
index f1f7c7d14a4845f36ad26eb1b5f8d900b87a9860..62ff639e7b70e640b5fbab77a0cdea04ab5223fe 100644 (file)
@@ -211,6 +211,7 @@ struct client {
        bool starttls:1;
        bool tls:1;
        bool secured:1;
+       bool ssl_secured:1;
        bool trusted:1;
        bool ssl_servername_settings_read:1;
        bool banner_sent:1;