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