11#ifndef PAPD_UAM_AUTH_H
12#define PAPD_UAM_AUTH_H 1
33 int (*
login)(
void *,
struct passwd **,
34 char *, int,
char *,
int *);
35 int (*
logincont)(
void *,
struct passwd **,
char *,
39 int (*
uam_changepw)(
void *,
char *,
struct passwd *,
char *,
46#define uam_attach(a, b) do { \
47 (a)->uam_prev->uam_next = (b); \
48 (b)->uam_prev = (a)->uam_prev; \
49 (b)->uam_next = (a); \
50 (a)->uam_prev = (b); \
53#define uam_detach(a) do { \
54 (a)->uam_prev->uam_next = (a)->uam_next; \
55 (a)->uam_next->uam_prev = (a)->uam_prev; \
58#define UAM_LIST(type) (((type) == UAM_SERVER_LOGIN) ? &uam_login : \
59 (((type) == UAM_SERVER_CHANGEPW) ? &uam_changepw : \
60 (((type) == UAM_SERVER_PRINTAUTH) ? &uam_printer : NULL)))
69#define auth_unregister(a) uam_detach(a)
struct uam_obj * auth_uamfind(const int type, const char *name, const int len)
Definition afpd/auth.c:1225
int auth_register(const int type, struct uam_obj *uam)
Definition afpd/auth.c:1244
void auth_unload(void)
Definition afpd/auth.c:1308
int auth_load(AFPObj *obj, const char *path, const char *list)
Definition afpd/auth.c:1261
struct uam_mod * uam_load(AFPObj *obj, const char *path, const char *name)
Definition afpd/uam.c:45
void uam_unload(struct uam_mod *mod)
Definition afpd/uam.c:102
int getuamnames(const int type, char *uamnames)
Definition papd/auth.c:43
Definition papd/file.h:11
Definition afpd/uam_auth.h:19
void * uam_module
Definition afpd/uam_auth.h:20
struct uam_mod * uam_next
Definition afpd/uam_auth.h:22
struct uam_mod * uam_prev
Definition afpd/uam_auth.h:22
struct uam_export * uam_fcn
Definition afpd/uam_auth.h:21
int(*) logincont(void *, struct passwd **, char *, int, char *, size_t *)
int(*) login(void *, struct passwd **, char *, int, char *, size_t *)
Definition afpd/uam_auth.h:25
union uam_obj::@305071364246310154315171152047165020217300263361 u
const char * uam_name
Definition afpd/uam_auth.h:26
struct uam_obj * uam_prev
Definition afpd/uam_auth.h:42
int uam_count
Definition afpd/uam_auth.h:28
struct uam_obj * uam_next
Definition afpd/uam_auth.h:42
char * uam_path
Definition afpd/uam_auth.h:27
int(*) uam_printer(char *, char *, char *, struct papfile *)
struct uam_obj::@305071364246310154315171152047165020217300263361::@262246253262311326074342013126355051162023043177 uam_login
int(*) uam_changepw(void *, char *, struct passwd *, char *, int, char *, size_t *)