Tell the user more explicitly what port needs to be installed to get the
[dragonfly.git] / contrib / libpam / modules / pam_unix / yppasswd.h
1 /*
2  * yppasswdd
3  * Copyright 1994, 1995, 1996 Olaf Kirch, <okir@monad.swb.de>
4  *
5  * This program is covered by the GNU General Public License, version 2.
6  * It is provided in the hope that it is useful. However, the author
7  * disclaims ALL WARRANTIES, expressed or implied. See the GPL for details.
8  *
9  * This file was generated automatically by rpcgen from yppasswd.x, and
10  * editied manually.
11  * $FreeBSD: src/contrib/libpam/modules/pam_unix/yppasswd.h,v 1.1.1.1.2.2 2001/06/11 15:28:30 markm Exp $
12  * $DragonFly: src/contrib/libpam/modules/pam_unix/Attic/yppasswd.h,v 1.2 2003/06/17 04:24:03 dillon Exp $
13  */
14
15 #ifndef _YPPASSWD_H_
16 #define _YPPASSWD_H_
17
18 #define YPPASSWDPROG ((u_long)100009)
19 #define YPPASSWDVERS ((u_long)1)
20 #define YPPASSWDPROC_UPDATE ((u_long)1)
21
22 /*
23  * The password struct passed by the update call. I renamed it to
24  * xpasswd to avoid a type clash with the one defined in <pwd.h>.
25  */
26 #ifndef __sgi
27 typedef struct xpasswd {
28         char *pw_name;
29         char *pw_passwd;
30         int pw_uid;
31         int pw_gid;
32         char *pw_gecos;
33         char *pw_dir;
34         char *pw_shell;
35 } xpasswd;
36
37 #else
38 #include <pwd.h>
39 typedef struct xpasswd xpasswd;
40 #endif
41
42 /* The updated password information, plus the old password.
43  */
44 typedef struct yppasswd {
45         char *oldpass;
46         xpasswd newpw;
47 } yppasswd;
48
49 /* XDR encoding/decoding routines */
50 bool_t xdr_xpasswd(XDR * xdrs, xpasswd * objp);
51 bool_t xdr_yppasswd(XDR * xdrs, yppasswd * objp);
52
53 #endif  /* _YPPASSWD_H_ */