}
struct client *
-client_alloc(int fd, bool ssl, pool_t pool,
+client_alloc(int fd, pool_t pool,
const struct master_service_connection *conn,
const struct login_settings *set,
const struct master_service_ssl_settings *ssl_set)
p_array_init(&client->module_contexts, client->pool, 5);
client->fd = fd;
- client->tls = ssl;
-
client->local_ip = conn->local_ip;
client->local_port = conn->local_port;
client->ip = conn->remote_ip;
client->local_name = conn->proxy.hostname;
client->client_cert_common_name = conn->proxy.cert_common_name;
} else {
- client->secured = ssl || client->trusted ||
+ client->secured = client->trusted ||
net_ip_compare(&conn->real_remote_ip, &conn->real_local_ip);
}
client->proxy_ttl = LOGIN_PROXY_TTL;
void login_client_hooks_remove(const struct login_client_hooks *hooks);
struct client *
-client_alloc(int fd, bool ssl, pool_t pool,
+client_alloc(int fd, pool_t pool,
const struct master_service_connection *conn,
const struct login_settings *set,
const struct master_service_ssl_settings *ssl_set);
set = login_settings_read(pool, &conn->local_ip,
&conn->remote_ip, NULL, &ssl_set, &other_sets);
- client = client_alloc(conn->fd, FALSE, pool, conn,
- set, ssl_set);
+ client = client_alloc(conn->fd, pool, conn, set, ssl_set);
if (ssl_connections || conn->ssl) {
if (client_init_ssl(client) < 0) {
client_unref(&client);