sasl-server.c revision 73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0fae
/* Copyright (C) 2002-2004 Timo Sirainen */
#include "common.h"
#include "base64.h"
#include "buffer.h"
#include "str-sanitize.h"
#include "auth-client.h"
#include "ssl-proxy.h"
#include "client-common.h"
#include "master.h"
/* Used only for string sanitization while verbose_auth is set. */
#define MAX_MECH_NAME 64
static enum auth_request_flags
{
enum auth_request_flags auth_flags = 0;
return auth_flags;
}
{
}
const char *data_base64,
{
const char *error;
if (!client->authenticating) {
/* client aborted */
return;
}
switch (status) {
case 0:
/* continue */
} else {
}
break;
case 1:
}
}
break;
case -1:
/* see if we have error message */
if (data_base64 != NULL) {
(const char *)data_base64, NULL);
} else {
}
break;
}
}
const char *initial_resp_base64,
{
struct auth_request_info info;
const struct auth_mech_desc *mech;
const char *error;
"Unsupported authentication mechanism.");
return;
}
"Plaintext authentication disabled.");
return;
}
}
}
{
MAX_MECH_NAME), reason);
}
}
}