yppasswd.h 1.2 KB

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