auth-client-request.c revision 7c849dbc7be089175c1a83a84ee7249ed695810d
/* Copyright (c) 2003-2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "str.h"
#include "strescape.h"
#include "ostream.h"
#include "auth-client-private.h"
#include "auth-server-connection.h"
#include "auth-client-request.h"
#include <stdlib.h>
struct auth_client_request {
struct auth_server_connection *conn;
unsigned int id;
struct auth_request_info request_info;
void *context;
};
struct auth_client_request *request)
{
}
if (info->local_port != 0)
if (info->remote_port != 0)
}
i_error("Error sending request to auth server: %m");
}
struct auth_client_request *
const struct auth_request_info *request_info,
{
struct auth_client_request *request;
T_BEGIN {
} T_END;
return request;
}
const char *data_base64)
{
const char *prefix;
i_error("Error sending continue request to auth server: %m");
}
enum auth_request_status status,
const char *data_base64,
const char *const *args)
{
if (status != AUTH_REQUEST_STATUS_CONTINUE)
}
{
}
{
}
unsigned int
{
}
{
}
{
}
enum auth_request_status status,
const char *const *args)
{
/* aborted already */
return;
}
switch (status) {
case AUTH_REQUEST_STATUS_OK:
break;
}
}
break;
base64_data = args[0];
break;
case AUTH_REQUEST_STATUS_FAIL:
break;
}
if (status != AUTH_REQUEST_STATUS_CONTINUE)
}
{
i_error("Error sending request to auth server: %m");
}