Initial import from FreeBSD RELENG_4:
[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  */
13
14 #ifndef _YPPASSWD_H_
15 #define _YPPASSWD_H_
16
17 #define YPPASSWDPROG ((u_long)100009)
18 #define YPPASSWDVERS ((u_long)1)
19 #define YPPASSWDPROC_UPDATE ((u_long)1)
20
21 /*
22  * The password struct passed by the update call. I renamed it to
23  * xpasswd to avoid a type clash with the one defined in <pwd.h>.
24  */
25 #ifndef __sgi
26 typedef struct xpasswd {
27         char *pw_name;
28         char *pw_passwd;
29         int pw_uid;
30         int pw_gid;
31         char *pw_gecos;
32         char *pw_dir;
33         char *pw_shell;
34 } xpasswd;
35
36 #else
37 #include <pwd.h>
38 typedef struct xpasswd xpasswd;
39 #endif
40
41 /* The updated password information, plus the old password.
42  */
43 typedef struct yppasswd {
44         char *oldpass;
45         xpasswd newpw;
46 } yppasswd;
47
48 /* XDR encoding/decoding routines */
49 bool_t xdr_xpasswd(XDR * xdrs, xpasswd * objp);
50 bool_t xdr_yppasswd(XDR * xdrs, yppasswd * objp);
51
52 #endif  /* _YPPASSWD_H_ */