Import Linux-PAM.
[profile/ivi/pam.git] / modules / pam_unix / yppasswd_xdr.c
1 /*
2  * yppasswdd
3  * Copyright 1994, 1995, 1996 Olaf Kirch, <okir@lst.de>
4  *
5  * This program is covered by the GNU General Public License, version 2
6  * or later. 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 #include "config.h"
14
15 #ifdef HAVE_RPC_RPC_H
16
17 #include <rpc/rpc.h>
18 #include "yppasswd.h"
19
20 bool_t
21 xdr_xpasswd(XDR * xdrs, xpasswd * objp)
22 {
23         return xdr_string(xdrs, &objp->pw_name, ~0)
24             && xdr_string(xdrs, &objp->pw_passwd, ~0)
25             && xdr_int(xdrs, &objp->pw_uid)
26             && xdr_int(xdrs, &objp->pw_gid)
27             && xdr_string(xdrs, &objp->pw_gecos, ~0)
28             && xdr_string(xdrs, &objp->pw_dir, ~0)
29             && xdr_string(xdrs, &objp->pw_shell, ~0);
30 }
31
32
33 bool_t
34 xdr_yppasswd(XDR * xdrs, yppasswd * objp)
35 {
36         return xdr_string(xdrs, &objp->oldpass, ~0)
37             && xdr_xpasswd(xdrs, &objp->newpw);
38 }
39
40 #endif