With version 1.1 protocol, server sent the authentication "+" or "-" line
before the VERSION. doveadm client accepts the VERSION reply either before
or after, so this change doesn't break it. It makes the protocol cleaner
though.
Based on patch by Manuel Mausz
static void
client_connection_tcp_input(struct client_connection_tcp *conn);
static void
+client_connection_tcp_send_auth_handshake(struct client_connection_tcp *conn);
+static void
client_connection_tcp_destroy(struct client_connection_tcp **_conn);
static failure_callback_t *orig_error_callback, *orig_fatal_callback;
DOVEADM_CLIENT_PROTOCOL_VERSION_LINE"\n");
conn->use_multiplex = TRUE;
}
+ client_connection_tcp_send_auth_handshake(conn);
conn->handshaked = TRUE;
}
if (!conn->authenticated) {
}
conn->preauthenticated =
client_connection_is_preauthenticated(listen_fd);
- client_connection_tcp_send_auth_handshake(conn);
client_connection_set_proctitle(&conn->conn, "");
return &conn->conn;