auth-server-request.c revision 235cb7d2446d5c2e25962e5c461f51fe6579c581
/* Copyright (C) 2003 Timo Sirainen */
#include "lib.h"
#include "hash.h"
#include "ostream.h"
#include "auth-client.h"
#include "auth-server-connection.h"
#include "auth-server-request.h"
struct auth_request {
struct auth_server_connection *conn;
enum auth_protocol protocol;
unsigned int id;
void *context;
struct auth_server_connection *next_conn;
unsigned char *plaintext_data; /* for resending to other servers */
unsigned int init_sent:1;
unsigned int retrying:1;
};
struct auth_request *request)
{
struct auth_client_request_new auth_request;
sizeof(auth_request)) < 0) {
i_warning("Error sending request to auth server: %m");
return FALSE;
}
return TRUE;
}
struct auth_request *request,
{
/* send continued request to auth */
sizeof(auth_request)) < 0 ||
i_warning("Error sending continue request to auth server: %m");
}
}
static struct auth_server_connection *
{
return conn;
}
return NULL;
}
struct auth_client_request_reply *reply,
const unsigned char *data)
{
struct auth_request *request;
struct auth_server_connection *next;
/* We've already destroyed the request */
return;
}
}
break;
break;
/* the other one hasn't replied yet */
return;
}
break;
}
return;
break;
return;
}
}
}
void *context)
{
} else {
}
} else {
}
}
{
}
struct auth_request *
const char **error_r)
{
struct auth_server_connection *conn;
struct auth_request *request;
return NULL;
/* wrapped - ID 0 not allowed */
}
return request;
}
{
/* plaintext authentication - save the data so we can
try it for the next */
request);
}
}
}
{
}
{
}
{
}