(root)/
Linux-PAM-1.5.3/
modules/
pam_unix/
yppasswd_xdr.c
       1  /*
       2   * Please do not edit this file.
       3   * It was generated using rpcgen.
       4   */
       5  
       6  #include "yppasswd.h"
       7  
       8  bool_t
       9  xdr_passwd (XDR *xdrs, xpasswd *objp)
      10  {
      11  	 if (!xdr_string (xdrs, &objp->pw_name, ~0))
      12  		 return FALSE;
      13  	 if (!xdr_string (xdrs, &objp->pw_passwd, ~0))
      14  		 return FALSE;
      15  	 if (!xdr_int (xdrs, &objp->pw_uid))
      16  		 return FALSE;
      17  	 if (!xdr_int (xdrs, &objp->pw_gid))
      18  		 return FALSE;
      19  	 if (!xdr_string (xdrs, &objp->pw_gecos, ~0))
      20  		 return FALSE;
      21  	 if (!xdr_string (xdrs, &objp->pw_dir, ~0))
      22  		 return FALSE;
      23  	 if (!xdr_string (xdrs, &objp->pw_shell, ~0))
      24  		 return FALSE;
      25  	return TRUE;
      26  }
      27  
      28  bool_t
      29  xdr_yppasswd (XDR *xdrs, yppasswd *objp)
      30  {
      31  	 if (!xdr_string (xdrs, &objp->oldpass, ~0))
      32  		 return FALSE;
      33  	 if (!xdr_passwd (xdrs, &objp->newpw))
      34  		 return FALSE;
      35  	return TRUE;
      36  }