blob: afc331767cbbbe45f5018e5e4cf72319dfaff1fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef pcpdauth_h
#define pcpdauth_h
/*
** Copyright 2001 Double Precision, Inc. See COPYING for
** distribution information.
*/
#include "config.h"
#include <sys/types.h>
#include <pwd.h>
struct userid_callback {
const char *userid;
const char *homedir;
const char *maildir;
uid_t uid;
int (*callback_func)(struct userid_callback *, void *);
void *callback_arg;
} ;
int authpcp_userid(const char *, int (*)(struct userid_callback *, void *),
void *);
int authpcp_login(const char *, const char *,
int (*)(struct userid_callback *, void *),
void *);
char *auth_myhostname();
char *auth_choplocalhost(const char *);
#endif
|