summaryrefslogtreecommitdiff
path: root/rpc.yppasswdd/yppasswd_xdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc.yppasswdd/yppasswd_xdr.c')
-rw-r--r--rpc.yppasswdd/yppasswd_xdr.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/rpc.yppasswdd/yppasswd_xdr.c b/rpc.yppasswdd/yppasswd_xdr.c
new file mode 100644
index 0000000..5e7eec6
--- /dev/null
+++ b/rpc.yppasswdd/yppasswd_xdr.c
@@ -0,0 +1,37 @@
+/*
+ * yppasswdd
+ * Copyright 1994, 1995, 1996 Olaf Kirch, <okir@monad.swb.de>
+ *
+ * This program is covered by the GNU General Public License, version 2.
+ * It is provided in the hope that it is useful. However, the author
+ * disclaims ALL WARRANTIES, expressed or implied. See the GPL for details.
+ *
+ * This file was generated automatically by rpcgen from yppasswd.x, and
+ * editied manually.
+ */
+
+#include <rpc/rpc.h>
+#include <rpcsvc/yp_prot.h>
+#include <rpcsvc/ypclnt.h>
+#include <rpcsvc/yppasswd.h>
+
+
+bool_t
+xdr_passwd(XDR *xdrs, struct passwd *objp)
+{
+ return xdr_string(xdrs, &objp->pw_name, ~0)
+ && xdr_string(xdrs, &objp->pw_passwd, ~0)
+ && xdr_int(xdrs, (int*)&objp->pw_uid) /* cast uid_t* -> int* */
+ && xdr_int(xdrs, (int*)&objp->pw_gid) /* cast gid_t* -> int* */
+ && xdr_string(xdrs, &objp->pw_gecos, ~0)
+ && xdr_string(xdrs, &objp->pw_dir, ~0)
+ && xdr_string(xdrs, &objp->pw_shell, ~0);
+}
+
+
+bool_t
+xdr_yppasswd(XDR *xdrs, yppasswd *objp)
+{
+ return xdr_string(xdrs, &objp->oldpass, ~0)
+ && xdr_passwd(xdrs, &objp->newpw);
+}