~ubuntu-branches/debian/experimental/nfs-utils/experimental

« back to all changes in this revision

Viewing changes to support/include/rpcsec.h

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-07-08 14:26:40 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060708142640-r171kjj2a13gy2kz
Tags: 1:1.0.9-1
* Updated co-mantainer mail address.
* New upstream release.
  - Added 'mount.nfs' utility which can be used as a mount helper
    to mount nfs filesystems. It does not yet support 'user' mounts.
  - Makefile/autoconf tidyups
  - No compiles with no warnings
  - deleted debian/* at request of debian maintainer
  - deleted assorted other unused files
  - mountd can be run multi-threaded for configurations with many hundreds
    of clients (mountd -t 20).  Default is single-threaded
  - Support for selection NFS version to be exported, and protocol to
    use.  This requires kernel patches that should be in linux 2.6.19.
  - Use 65534 rather than -2 for default anon.  This makes no difference in many
    cases, but is important in some.
  - New utility 'rpcdebug' for controlled kernel 'debug' options for nfs and nfsd.
  - nfsstat reports NFSv4 operation statistics that should be available in
    linux 2.6.18.
  - assorted other fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Declarations needed for the authdes library. Some of the functions
3
 
 *  mentioned herein have been omitted from the Linux libc header files
4
 
 */
5
 
 
6
 
#ifndef RPCSEC_H
7
 
#define RPCSEC_H
8
 
 
9
 
int     netname2user(char *netname, int *uidp, int *gidp,
10
 
                                        int *gidlenp, int *gidlist);
11
 
int     netname2host(char *netname, char *hostname, int hostlen);
12
 
int     getnetname(char *name);
13
 
int     user2netname(char *netname, int uid, char *domain);
14
 
int     host2netname(char *netname, char *hostname, char *domain);
15
 
void    passwd2des(char *pw, char *key);
16
 
int     getsecretkey(char *netname, char *secretkey, char *passwd);
17
 
int     getpublickey(char *hostname, char *publickey);
18
 
int     yp_update(char *domain, char *map, unsigned int ypop,
19
 
                        char *key, int keylen, char *data, int datalen);
20
 
int     key_setsecret(char *secret);
21
 
int     xencrypt(char *secret, char *passwd);
22
 
int     xdecrypt(char *secret, char *passwd);
23
 
 
24
 
 
25
 
#define PUBLICKEY_MAP   "publickey.byname"
26
 
#define NETID_MAP       "netid.byname"
27
 
 
28
 
#ifndef DEBUG
29
 
#define RPCSEC_BASE     "/etc/"
30
 
#else
31
 
#define RPCSEC_BASE     "/tmp/"
32
 
#endif
33
 
 
34
 
#define PUBLICKEY_FILE  RPCSEC_BASE "publickey"
35
 
#define PUBLICKEY_LOCK  RPCSEC_BASE "publickey.lock"
36
 
#define ROOTKEY_FILE    RPCSEC_BASE ".rootkey"
37
 
#define KEYSTORE_FILE   RPCSEC_BASE "keystore"
38
 
 
39
 
#endif /* RPCSEC_H */