/* Copyright (c) 2010-2018 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;
};
{
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;
}
}
{
return conn;
}
{
}
{
return -1;
}
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) {
}
}