auth-request-handler.c revision 7536dca18968a279b69c685eedda205bee228fd4
0N/A#include "auth-common.h"
0N/A#include "str-sanitize.h"
0N/A#include "master-interface.h"
0N/A#include "auth-penalty.h"
0N/A#include "auth-request.h"
0N/A#include "auth-master-connection.h"
0N/A#include "auth-request-handler.h"
2362N/Astruct auth_request_handler {
0N/Astruct auth_request_handler *
0N/A case AUTH_REQUEST_STATE_NEW:
0N/A case AUTH_REQUEST_STATE_MAX:
0N/A i_unreached();
0N/A unsigned int connect_uid,
0N/A unsigned int client_pid)
case PASSDB_RESULT_OK:
if (success)
int ret;
switch (result) {
if (reply_size > 0) {
if (ret < 0)
else if (ret > 0)
const char *reason)
const char *str;
unsigned int secs;
if (penalty == 0)
request);
const char *args)
void *initial_resp_data;
unsigned int id;
return FALSE;
return FALSE;
arg++;
list++;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
return TRUE;
return TRUE;
const char *args)
const char *data;
unsigned int id;
return FALSE;
data++;
return TRUE;
return TRUE;
return TRUE;
return TRUE;
const char *value;
switch (result) {
case USERDB_RESULT_OK:
unsigned int id,
unsigned int client_id)
return FALSE;
return TRUE;
return TRUE;
unsigned int client_id)
unsigned int i, count;
if (count == 0) {
for (i = 0; i < count; i++) {
&uchar_nul, 0);
void auth_request_handler_init(void)
void auth_request_handler_deinit(void)