Mercurial > dovecot > original-hg > dovecot-1.2
view src/auth/userinfo.h @ 1000:0fbafade2d85 HEAD
If auth/login process died unexpectedly, the exit status or killing signal
wasn't logged.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 21 Jan 2003 09:58:49 +0200 |
parents | fd8888f6f037 |
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