/*
-** Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
+** Copyright 1998 - 2007 Double Precision, Inc. See COPYING for
** distribution information.
*/
#include <vpopmail.h>
#include <vauth.h>
-static const char rcsid[]="$Id: authvchkpw.c,v 1.26 2007/04/22 18:53:30 mrsam Exp $";
+static const char rcsid[]="$Id: authvchkpw.c,v 1.29 2007/10/07 02:50:45 mrsam Exp $";
extern int auth_vchkpw_pre(const char *userid, const char *service,
extern FILE *authvchkpw_file(const char *, const char *);
+static int auth_vchkpw_login(const char *service, char *authdata,
+ int (*callback_func)(struct authinfo *, void *), void *callback_arg);
+
struct callback_info {
const char *pass;
int (*callback_func)(struct authinfo *, void *);
#include "libhmac/hmac.h"
#include "cramlib.h"
+static int auth_vchkpw_login(const char *service, char *authdata,
+ int (*callback_func)(struct authinfo *, void *), void *callback_arg);
static int auth_vchkpw_cram(const char *service,
const char *authtype, char *authdata,