/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "safe-memset.h"
#include "mech.h"
#include "passdb.h"
#include "mech-plain-common.h"
static void
{
char *pass;
int count;
/* authorization ID \0 authentication ID \0 pass. */
count = 0;
for (i = 0; i < data_size; i++) {
if (data[i] == '\0') {
if (++count == 1)
else {
i++;
break;
}
}
}
/* the login username isn't different */
authid = "";
}
if (count != 2) {
/* invalid input */
/* invalid username */
} else if (*authid != '\0' &&
/* invalid login username */
"login user: %s", error);
} else {
}
/* make sure it's cleared */
}
{
return request;
}
"PLAIN",
};