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
11 * $FreeBSD: src/contrib/libpam/modules/pam_unix/yppasswd_xdr.c,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_xdr.c,v 1.2 2003/06/17 04:24:03 dillon Exp $
15 #include <security/_pam_aconf.h>
18 #include <rpcsvc/yp_prot.h>
19 #include <rpcsvc/ypclnt.h>
23 xdr_xpasswd(XDR * xdrs, xpasswd * objp)
25 return xdr_string(xdrs, &objp->pw_name, ~0)
26 && xdr_string(xdrs, &objp->pw_passwd, ~0)
27 && xdr_int(xdrs, &objp->pw_uid)
28 && xdr_int(xdrs, &objp->pw_gid)
29 && xdr_string(xdrs, &objp->pw_gecos, ~0)
30 && xdr_string(xdrs, &objp->pw_dir, ~0)
31 && xdr_string(xdrs, &objp->pw_shell, ~0);
36 xdr_yppasswd(XDR * xdrs, yppasswd * objp)
38 return xdr_string(xdrs, &objp->oldpass, ~0)
39 && xdr_xpasswd(xdrs, &objp->newpw);