auth-server-connection.c revision 9f33eb179d51413f54600adfa2f0cedeb42b4f6b
b94d7d4b3d3472197238271e200468b55c5e6102henning mueller/* Copyright (C) 2003-2004 Timo Sirainen */
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksastatic void auth_server_connection_unref(struct auth_server_connection *conn);
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksastatic void update_available_auth_mechs(struct auth_server_connection *conn)
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa unsigned int i;
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa for (i = 0; i < conn->available_auth_mechs_count; i++) {
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa if (auth_client_find_mech(client, mech[i].name) == NULL) {
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksaauth_client_input_mech(struct auth_server_connection *conn, const char *args)
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa const char *const *list;
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa i_error("BUG: Authentication server already sent handshake");
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa i_error("BUG: Authentication server sent broken MECH line");
return TRUE;
return FALSE;
return TRUE;
return FALSE;
return TRUE;
return FALSE;
return TRUE;
const char *line;
int ret;
t_push();
t_pop();
if (!ret) {
struct auth_server_connection *
const char *handshake;
return NULL;
FALSE);
return NULL;
return conn;
bool reconnect)
if (reconnect)
struct auth_server_connection *
return conn;
return NULL;
struct auth_server_connection *
unsigned int i, n, match_n;
return conn;
match_n = n;
return match;
return NULL;