Back to index

courier  0.68.2
pcpdauth.h
Go to the documentation of this file.
00001 #ifndef pcpdauth_h
00002 #define pcpdauth_h
00003 
00004 /*
00005 ** Copyright 2001 Double Precision, Inc.  See COPYING for
00006 ** distribution information.
00007 */
00008 
00009 
00010 #include "config.h"
00011 #include <sys/types.h>
00012 #include <pwd.h>
00013 
00014 struct userid_callback {
00015        const char *userid;
00016        const char *homedir;
00017        const char *maildir;
00018        uid_t uid;
00019 
00020        int (*callback_func)(struct userid_callback *, void *);
00021        void *callback_arg;
00022 } ;
00023 
00024 int authpcp_userid(const char *, int (*)(struct userid_callback *, void *),
00025               void *);
00026 
00027 int authpcp_login(const char *, const char *,
00028                 int (*)(struct userid_callback *, void *),
00029                 void *);
00030 
00031 
00032 char *auth_myhostname();
00033 char *auth_choplocalhost(const char *);
00034 
00035 #endif