/*
*
* Copyright (c) 2006 Andrey Panin <pazke@donpac.ru>
*
* This software is released under the MIT license.
*/
#include "auth-common.h"
#include "safe-memset.h"
#include "hash.h"
#include "mech.h"
#include "passdb.h"
#include "hex-binary.h"
#include "otp.h"
#include "mech-otp-skey-common.h"
static void
{
(struct otp_auth_request *)auth_request;
const char *answer;
"invalid OTP data in passdb");
return;
}
"md4 hash is needed");
return;
}
"sequence number < 1");
return;
}
"user is locked, race attack?");
return;
}
}
static void
struct auth_request *auth_request)
{
switch (result) {
case PASSDB_RESULT_OK:
break;
break;
default:
break;
}
}
static void
struct auth_request *auth_request)
{
switch (result) {
case PASSDB_RESULT_OK:
break;
break;
default:
break;
}
}
static void
{
"%s", error);
return;
}
}
static void
{
(struct otp_auth_request *)auth_request;
int ret;
if (data_size == 8) {
} else {
if (ret < 0) {
"invalid response");
return;
}
}
if (ret != 0) {
return;
}
}
static void
{
} else {
}
}
{
return &request->auth_request;
}
"SKEY",
};