auth-server-request.c revision 2af6a71c4d9681dadfca62b1c1d02574f58c1a60
/* Copyright (C) 2003-2004 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "hash.h"
#include "ostream.h"
#include "auth-client.h"
#include "auth-server-connection.h"
#include "auth-server-request.h"
#include <stdlib.h>
struct auth_request {
struct auth_server_connection *conn;
unsigned int id;
enum auth_request_flags flags;
char *initial_resp_base64;
void *context;
struct auth_server_connection *next_conn;
char *plaintext_data; /* for resending to other servers */
unsigned int init_sent:1;
unsigned int retrying:1;
};
struct auth_request *request);
static struct auth_server_connection *
{
if (conn->has_plain_mech)
return conn;
}
return NULL;
}
static void
{
/* plaintext authentication - save the data so we can
try it for the next */
request);
}
}
}
struct auth_request *request)
{
t_push();
t_pop();
if (ret < 0) {
i_warning("Error sending request to auth server: %m");
return FALSE;
}
return TRUE;
}
struct auth_request *request,
const char *data_base64)
{
const char *prefix;
i_warning("Error sending continue request to auth server: %m");
}
}
{
struct auth_request *request;
unsigned int id;
i_error("BUG: Authentication server sent broken OK line");
return FALSE;
}
/* We've already destroyed the request */
return TRUE;
}
data_base64 = NULL;
break;
}
}
return TRUE;
}
const char *args)
{
struct auth_request *request;
const char *data;
unsigned int id;
i_error("BUG: Authentication server sent broken CONT line");
return FALSE;
}
/* We've already destroyed the request */
return TRUE;
}
}
return TRUE;
}
const char *args)
{
struct auth_request *request;
struct auth_server_connection *next;
const char *const *list;
unsigned int id;
i_error("BUG: Authentication server sent broken OK line");
return FALSE;
}
/* We've already destroyed the request */
return TRUE;
}
/* the other one hasn't replied yet */
return TRUE;
}
} else {
request);
return TRUE;
}
}
return TRUE;
}
struct auth_request *request)
{
} else {
}
} else {
}
}
{
struct hash_iterate_context *iter;
}
struct auth_request *
const struct auth_request_info *request_info,
const char **error_r)
{
struct auth_server_connection *conn;
struct auth_request *request;
error_r);
} else {
break;
}
}
return NULL;
}
/* wrapped - ID 0 not allowed */
}
return request;
}
const char *data_base64)
{
}
{
}
{
}
{
}
{
}