Imported upstream version 0.60.1
[hcoop/debian/courier-authlib.git] / authvchkpw.c
index d533ddc..566e977 100644 (file)
@@ -1,5 +1,5 @@
 /*
-** Copyright 1998 - 2004 Double Precision, Inc.  See COPYING for
+** Copyright 1998 - 2007 Double Precision, Inc.  See COPYING for
 ** distribution information.
 */
 
@@ -21,7 +21,7 @@
 #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,
@@ -30,6 +30,9 @@ 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 *);
@@ -60,6 +63,8 @@ struct callback_info *i=(struct callback_info *)p;
 #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,