Mercurial > dovecot > original-hg > dovecot-1.2
view src/auth/userinfo.h @ 91:dc0891523276 HEAD
bugfix for sync fix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 29 Aug 2002 01:42:00 +0300 |
parents | 1b34ec11fff8 |
children | fa2d1a1d025e |
line wrap: on
line source
#ifndef __USERINFO_H #define __USERINFO_H #include "auth-interface.h" typedef struct { void (*init)(const char *args); void (*deinit)(void); /* Returns TRUE if user/pass matches, and fills reply with user information. reply should have been initialized (zeroed) before calling this function. */ int (*verify_plain)(const char *user, const char *password, AuthCookieReplyData *reply); /* Digest-MD5 specific password lookup. The digest is filled with the MD5 password which consists of a MD5 sum of "user:realm:password". If utf8 is TRUE, the user and realm are in UTF-8, otherwise ISO-8859-1. Returns TRUE if user was found. */ int (*lookup_digest_md5)(const char *user, const char *realm, unsigned char digest[16], AuthCookieReplyData *reply); } UserInfoModule; extern UserInfoModule *userinfo; extern UserInfoModule userinfo_passwd; extern UserInfoModule userinfo_shadow; extern UserInfoModule userinfo_pam; extern UserInfoModule userinfo_passwd_file; void userinfo_init(void); void userinfo_deinit(void); #endif