auth-client.c revision 89a126810703c666309310d0f3189e9834d70b5b
/* Copyright (c) 2003-2007 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "ioloop.h"
#include "hash.h"
#include "auth-client.h"
#include "auth-server-connection.h"
#include <dirent.h>
#define AUTH_CLIENT_SOCKET_MAX_WAIT_TIME 10
{
struct auth_client *client;
return client;
}
{
struct auth_server_connection *next;
struct auth_mech_desc *mech;
for (i = 0; i < size; i++)
}
}
{
struct auth_server_connection *next;
}
}
const struct auth_mech_desc *
unsigned int *mech_count)
{
const struct auth_mech_desc *mechs;
return mechs;
}
const struct auth_mech_desc *
{
const struct auth_mech_desc *mech;
for (i = 0; i < size; i++) {
return &mech[i];
}
return NULL;
}
const char *mech,
struct auth_connect_id *id_r)
{
struct auth_server_connection *conn;
const char *error;
return FALSE;
return TRUE;
}
{
client->conn_waiting_handshake_count == 0 &&
}
void *context)
{
}
{
}
{
/* we're chrooted */
i_fatal("opendir(.) failed when trying to get list of "
"authentication servers: %m");
}
if (name[0] == '.')
continue;
/* already connected */
continue;
}
/* Normally they're sockets, but in UnixWare they're
created as fifos. */
}
}
if (client->missing_sockets_start_time == 0)
i_fatal("No authentication sockets found");
}
i_error("closedir() failed: %m");
}
}
}