auth-connection.c revision 2cc34f340d31125b16f58948bed8cc6a86911fcf
/* Copyright (c) 2010-2015 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "istream.h"
#include "ostream.h"
#include "net.h"
#include "llist.h"
#include "safe-memset.h"
#include "auth-client-interface.h"
#include "auth-connection.h"
#include <unistd.h>
struct auth_connection {
char *path;
int fd;
void *context;
};
static struct auth_connection *auth_connections;
{
char *line;
case 0:
return;
case -1:
/* disconnected */
i_error("Auth server disconnected unexpectedly");
return;
case -2:
/* buffer full */
i_error("BUG: Auth server sent us more than %d bytes",
(int)AUTH_CLIENT_MAX_LINE_LENGTH);
return;
}
T_BEGIN {
} T_END;
}
}
{
struct auth_connection *conn;
return conn;
}
{
}
{
return -1;
}
FALSE);
return 0;
}
{
i_error("close(auth connection) failed: %m");
}
}
{
/* notify callback. it should deinit this connection */
}
{
}
void auth_connections_deinit(void)
{
while (auth_connections != NULL) {
}
}