client->trusted = client_is_trusted(client);
if (conn->haproxied) {
- client->proxied_ssl = conn->haproxy.ssl;
+ client->haproxy_terminated_tls = conn->haproxy.ssl;
client->connection_secured = conn->haproxy.ssl || client->trusted;
client->end_client_tls_secured = conn->haproxy.ssl;
client->local_name = conn->haproxy.hostname;
if (!client->connection_tls_secured) {
tab[11].value = client->connection_secured ? "secured" : NULL;
tab[12].value = "";
- } else if (client->proxied_ssl) {
+ } else if (client->haproxy_terminated_tls) {
tab[11].value = "TLS";
tab[12].value = "(proxied)";
} else if (client->ssl_iostream != NULL) {
/* Client/proxy connection is using TLS. Dovecot has terminated the
TLS connection (not haproxy). */
bool connection_tls_secured:1;
- bool proxied_ssl:1;
+ /* HAProxy terminated the TLS connection. */
+ bool haproxy_terminated_tls:1;
/* Connection from the previous hop (client, proxy, haproxy) is
considered secured. Either because TLS is used, or because the
connection is otherwise considered not to need TLS. Note that this
if (client->ssl_iostream != NULL &&
ssl_iostream_has_valid_client_cert(client->ssl_iostream))
auth_flags |= AUTH_REQUEST_FLAG_VALID_CLIENT_CERT;
- if (client->connection_tls_secured || client->proxied_ssl)
+ if (client->connection_tls_secured || client->haproxy_terminated_tls)
auth_flags |= AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS;
if (client->connection_secured)
auth_flags |= AUTH_REQUEST_FLAG_SECURED;