passdb-blocking.c revision 85a68e861c37fa7f9642f90927d50883b5050291
/* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "str.h"
#include "strescape.h"
#include "auth-worker-server.h"
#include "password-scheme.h"
#include "passdb.h"
#include "passdb-blocking.h"
static void
const char *const *args)
{
if (**args != '\0')
args++;
}
enum passdb_result
{
enum passdb_result ret;
const char *const *args;
/* OK \t user \t password [\t extra] */
return PASSDB_RESULT_OK;
}
/* NEXT \t user [\t extra] */
return PASSDB_RESULT_NEXT;
}
int result;
/* FAIL \t result [\t user \t password [\t extra]] */
/* shouldn't happen */
} else {
if (ret == PASSDB_RESULT_OK) {
/* shouldn't happen */
/* internal failure most likely */
return ret;
}
return ret;
}
}
}
"Received invalid reply from worker: %s", reply);
return PASSDB_RESULT_INTERNAL_FAILURE;
}
static bool
{
enum passdb_result result;
return TRUE;
}
{
}
{
enum passdb_result result;
"Received reply from worker without "
"password scheme");
}
}
request);
return TRUE;
}
{
}
static bool
{
bool success;
return TRUE;
}
const char *new_credentials)
{
}