~ubuntu-branches/ubuntu/breezy/pam/breezy

« back to all changes in this revision

Viewing changes to Linux-PAM/modules/pam_unix/yppasswd_xdr.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-06-28 14:28:08 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040628142808-adikk7vtfg3pzcjw
Tags: 0.76-22
* Add uploaders
* Document location of repository
* Fix options containing arguments in pam_unix, Closes: #254904

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 * yppasswdd
 
3
 * Copyright 1994, 1995, 1996 Olaf Kirch, <okir@monad.swb.de>
 
4
 *
 
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.
 
8
 * 
 
9
 * This file was generated automatically by rpcgen from yppasswd.x, and
 
10
 * editied manually.
 
11
 */
 
12
 
 
13
#include <security/_pam_aconf.h>
 
14
 
 
15
#include <rpc/rpc.h>
 
16
#include <rpcsvc/yp_prot.h>
 
17
#include <rpcsvc/ypclnt.h>
 
18
#include "yppasswd.h"
 
19
 
 
20
bool_t
 
21
xdr_xpasswd(XDR * xdrs, xpasswd * objp)
 
22
{
 
23
        return xdr_string(xdrs, &objp->pw_name, ~0)
 
24
            && xdr_string(xdrs, &objp->pw_passwd, ~0)
 
25
            && xdr_int(xdrs, &objp->pw_uid)
 
26
            && xdr_int(xdrs, &objp->pw_gid)
 
27
            && xdr_string(xdrs, &objp->pw_gecos, ~0)
 
28
            && xdr_string(xdrs, &objp->pw_dir, ~0)
 
29
            && xdr_string(xdrs, &objp->pw_shell, ~0);
 
30
}
 
31
 
 
32
 
 
33
bool_t
 
34
xdr_yppasswd(XDR * xdrs, yppasswd * objp)
 
35
{
 
36
        return xdr_string(xdrs, &objp->oldpass, ~0)
 
37
            && xdr_xpasswd(xdrs, &objp->newpw);
 
38
}