2 ** Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
3 ** distribution information.
7 #include "courier_auth_config.h"
19 #include "authstaticlist.h"
20 #include "courierauthdebug.h"
22 static const char rcsid
[]="$Id: authpwd.c,v 1.15 2004/11/14 02:58:16 mrsam Exp $";
24 extern int auth_pwd_pre(const char *userid
, const char *service
,
25 int (*callback
)(struct authinfo
*, void *),
27 extern void auth_pwd_enumerate( void(*cb_func
)(const char *name
,
36 int auth_pwd(const char *service
, const char *authtype
, char *authdata
,
37 int (*callback_func
)(struct authinfo
*, void *),
40 const char *user
, *pass
;
42 if (strcmp(authtype
, AUTHTYPE_LOGIN
) ||
43 (user
=strtok(authdata
, "\n")) == 0 ||
44 (pass
=strtok(0, "\n")) == 0)
50 return auth_sys_common(&auth_pwd_pre
,
58 static void auth_pwd_cleanup()
66 static struct authstaticinfo authpwd_info
={
77 struct authstaticinfo
*courier_authpwd_init()