auth-postfix-connection.c revision 5f1d689131a75c39f064cbd4202373e7edf78f18
/* Copyright (c) 2011-2017 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "ioloop.h"
#include "net.h"
#include "istream.h"
#include "ostream.h"
#include "llist.h"
#include "str.h"
#include "strescape.h"
#include "str-sanitize.h"
#include "master-service.h"
#include "userdb.h"
#include "auth-postfix-connection.h"
#include <unistd.h>
#define MAX_INBUF_SIZE 1024
struct auth_postfix_connection {
int refcount;
int fd;
char *path;
bool destroyed:1;
};
static struct auth_postfix_connection *auth_postfix_connections;
static bool
const char *username,
{
struct auth_request *auth_request;
return FALSE;
}
return TRUE;
}
static void
{
const char *value;
switch (result) {
else
break;
break;
case USERDB_RESULT_OK:
break;
}
}
static bool
{
struct auth_request *auth_request;
const char *error;
&auth_request, &error)) {
} else {
}
return TRUE;
}
static bool
{
i_error("BUG: Unknown command in postfix socket: %s",
return FALSE;
}
{
char *line;
bool ret;
case 0:
return;
case -1:
/* disconnected */
return;
case -2:
/* buffer full */
i_error("BUG: Postfix sent us more than %d bytes",
(int)MAX_INBUF_SIZE);
return;
}
T_BEGIN {
} T_END;
if (!ret) {
return;
}
}
}
struct auth_postfix_connection *
{
struct auth_postfix_connection *conn;
return conn;
}
static void
{
return;
}
}
{
}
static void
{
return;
}
void auth_postfix_connections_destroy_all(void)
{
struct auth_postfix_connection *conn;
while (auth_postfix_connections != NULL) {
}
}