/* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "fdpass.h"
#include "buffer.h"
#include "hash.h"
#include "master-service-private.h"
#include "master-auth.h"
#include <unistd.h>
struct master_auth_connection {
unsigned int tag;
char *path;
int fd;
unsigned int buf_pos;
void *context;
};
struct master_auth {
const char *default_path;
unsigned int tag_counter;
};
struct master_auth *
{
return auth;
}
static void
{
}
}
{
void *key;
}
}
{
int ret;
if (ret <= 0) {
i_error("read(%s) failed: Remote closed connection "
"(destination service { process_limit } reached?)",
} else {
return;
}
return;
}
return;
/* reply is now read */
i_error("master(%s): Received reply with unknown tag %u",
/* request aborted */
} else {
}
}
{
i_error("master(%s): Auth request timed out (received %u/%u bytes)",
}
const struct master_auth_request_params *params,
unsigned int *tag_r)
{
i_fatal("fstat(auth dest fd) failed: %m");
i_error("net_connect_unix(%s) failed: %m%s",
return;
}
if (ret < 0) {
i_error("fd_send(%s) sent only %d of %d bytes",
ret = -1;
}
if (ret < 0) {
return;
}
}
const struct master_auth_request *request,
const unsigned char *data,
{
}
{
}