client-authenticate.c revision 348d897426ff46ae23aaa432aff0087ce4d034d5
/* Copyright (c) 2002-2013 Dovecot authors, see the included COPYING file */
#include "login-common.h"
#include "base64.h"
#include "buffer.h"
#include "hex-binary.h"
#include "ioloop.h"
#include "istream.h"
#include "ostream.h"
#include "safe-memset.h"
#include "str.h"
#include "str-sanitize.h"
#include "auth-client.h"
#include "../pop3/pop3-capability.h"
#include "ssl-proxy.h"
#include "client.h"
#include "client-authenticate.h"
#include "pop3-proxy.h"
#include <stdlib.h>
const char *capability_string = POP3_CAPABILITY_REPLY;
{
const struct auth_mech_desc *mech;
unsigned int i, count;
for (i = 0; i < count; i++) {
}
return TRUE;
}
enum client_auth_result result,
const char *text)
{
switch (result) {
/* nothing to be done for POP3 */
break;
break;
break;
default:
break;
}
}
{
const struct auth_mech_desc *mech;
const char *mech_name, *p;
if (*args == '\0') {
/* Old-style SASL discovery, used by MS Outlook */
unsigned int i, count;
for (i = 0; i < count; i++) {
}
return TRUE;
}
/* <mechanism name> <initial response> */
if (p == NULL) {
} else {
args = p+1;
}
return TRUE;
}
{
return TRUE;
return TRUE;
}
{
/* client may ignore the USER reply and only display the error
message from PASS */
return TRUE;
"No username given.");
return TRUE;
}
/* authorization ID \0 authentication ID \0 pass */
return TRUE;
}
{
const char *p;
unsigned int server_pid, connect_uid;
"APOP not enabled.");
return TRUE;
}
/* <username> <md5 sum in hex> */
"Invalid parameters.");
return TRUE;
}
/* APOP challenge \0 username \0 APOP response */
"Invalid characters in MD5 response");
}
"Invalid characters in MD5 response.");
return TRUE;
}
/* we reconnected to auth server and can't authenticate
with APOP in this session anymore. disconnecting the user
is probably the best solution now. */
"Reconnected to auth server, can't do APOP");
return TRUE;
}
return TRUE;
}