yppasswd_xdr.c 994 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #include "config.h"
  13. #ifdef HAVE_RPC_RPC_H
  14. #include <rpc/rpc.h>
  15. #include "yppasswd.h"
  16. bool_t
  17. xdr_xpasswd(XDR * xdrs, xpasswd * objp)
  18. {
  19. return xdr_string(xdrs, &objp->pw_name, ~0)
  20. && xdr_string(xdrs, &objp->pw_passwd, ~0)
  21. && xdr_int(xdrs, &objp->pw_uid)
  22. && xdr_int(xdrs, &objp->pw_gid)
  23. && xdr_string(xdrs, &objp->pw_gecos, ~0)
  24. && xdr_string(xdrs, &objp->pw_dir, ~0)
  25. && xdr_string(xdrs, &objp->pw_shell, ~0);
  26. }
  27. bool_t
  28. xdr_yppasswd(XDR * xdrs, yppasswd * objp)
  29. {
  30. return xdr_string(xdrs, &objp->oldpass, ~0)
  31. && xdr_xpasswd(xdrs, &objp->newpw);
  32. }
  33. #endif