2 ** Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
3 ** distribution information.
7 #include "courier_auth_config.h"
19 #include "courierauthstaticlist.h"
20 #include "courierauthdebug.h"
23 extern int auth_pwd_pre(const char *userid
, const char *service
,
24 int (*callback
)(struct authinfo
*, void *),
26 extern void auth_pwd_enumerate( void(*cb_func
)(const char *name
,
35 int auth_pwd(const char *service
, const char *authtype
, char *authdata
,
36 int (*callback_func
)(struct authinfo
*, void *),
39 const char *user
, *pass
;
41 if (strcmp(authtype
, AUTHTYPE_LOGIN
) ||
42 (user
=strtok(authdata
, "\n")) == 0 ||
43 (pass
=strtok(0, "\n")) == 0)
49 return auth_sys_common(&auth_pwd_pre
,
57 static void auth_pwd_cleanup()
65 static struct authstaticinfo authpwd_info
={
76 struct authstaticinfo
*courier_authpwd_init()