Mercurial > dovecot > original-hg > dovecot-1.2
view src/auth/userinfo.h @ 903:fd8888f6f037 HEAD
Naming style changes, finally got tired of most of the typedefs. Also the
previous enum -> macro change reverted so that we don't use the highest bit
anymore, that's incompatible with old indexes so they will be rebuilt.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 05 Jan 2003 15:09:51 +0200 |
parents | fa2d1a1d025e |
children |
line wrap: on
line source
#ifndef __USERINFO_H #define __USERINFO_H #include "auth-interface.h" struct user_info_module { 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, struct auth_cookie_reply_data *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], struct auth_cookie_reply_data *reply); }; extern struct user_info_module *userinfo; extern struct user_info_module userinfo_passwd; extern struct user_info_module userinfo_shadow; extern struct user_info_module userinfo_pam; extern struct user_info_module userinfo_passwd_file; extern struct user_info_module userinfo_vpopmail; void userinfo_init(void); void userinfo_deinit(void); #endif