3 * Copyright 1994, 1995, 1996 Olaf Kirch, <okir@monad.swb.de>
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.
9 * This file was generated automatically by rpcgen from yppasswd.x, and
16 #include <rpcsvc/yp_prot.h>
17 #include <rpcsvc/ypclnt.h>
21 xdr_xpasswd(XDR * xdrs, xpasswd * objp)
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);
34 xdr_yppasswd(XDR * xdrs, yppasswd * objp)
36 return xdr_string(xdrs, &objp->oldpass, ~0)
37 && xdr_xpasswd(xdrs, &objp->newpw);