diff options
author | Neil Brown <neilb@suse.de> | 2006-07-05 10:41:03 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-07-05 10:41:03 +1000 |
commit | 9f5b40b7a68fe0a2648565ecbd4b08bf60287130 (patch) | |
tree | afc9c851a90f7b9ab5d77bbb1f9e94deb4649574 /support/include | |
parent | fbb1602bbd34cbe89dd55ca6eaaa19432237db1d (diff) | |
download | nfs-utils-9f5b40b7a68fe0a2648565ecbd4b08bf60287130.tar.gz nfs-utils-9f5b40b7a68fe0a2648565ecbd4b08bf60287130.tar.xz nfs-utils-9f5b40b7a68fe0a2648565ecbd4b08bf60287130.zip |
Remove some files that old, unused, unneeded.
deleted: support/export/keys.c
deleted: support/include/rpcdispatch.h
deleted: support/include/rpcsec.h
deleted: support/include/version.h
deleted: support/include/ypupdate.h
deleted: support/nfs/clients.c
deleted: support/nfs/keytab.c
deleted: support/nfs/ypupdate_xdr.c
deleted: support/rpc/include/Makefile.am
deleted: tools/rpcdebug/neat_idea.c
deleted: utils/mountd/mount_xdr.c
deleted: utils/rquotad/pathnames.h
Diffstat (limited to 'support/include')
-rw-r--r-- | support/include/Makefile.am | 6 | ||||
-rw-r--r-- | support/include/rpcdispatch.h | 57 | ||||
-rw-r--r-- | support/include/rpcsec.h | 39 | ||||
-rw-r--r-- | support/include/version.h | 1 | ||||
-rw-r--r-- | support/include/ypupdate.h | 16 |
5 files changed, 1 insertions, 118 deletions
diff --git a/support/include/Makefile.am b/support/include/Makefile.am index cdf628b..a99882c 100644 --- a/support/include/Makefile.am +++ b/support/include/Makefile.am @@ -11,15 +11,11 @@ noinst_HEADERS = \ nfs_mntent.h \ nfs_paths.h \ nfslib.h \ - rpcdispatch.h \ rpcmisc.h \ - rpcsec.h \ tcpwrapper.h \ - version.h \ xio.h \ xlog.h \ xmalloc.h \ - xcommon.h \ - ypupdate.h + xcommon.h MAINTAINERCLEANFILES = Makefile.in diff --git a/support/include/rpcdispatch.h b/support/include/rpcdispatch.h deleted file mode 100644 index 866d4bf..0000000 --- a/support/include/rpcdispatch.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * nlm_dispatch This is a generic RPC call dispatcher. - * It is loosely based on the dispatch mechanism I - * first encountered in the UNFSD source. - * - * Cyopright (C) 1995, Olaf Kirch <okir@monad.swb.de> - * - * 24.05.95 okir - * - */ - -#ifndef RPCDISPATCH_H -#define RPCDISPATCH_H - -#include <rpc/rpc.h> - -#ifdef __STDC__ -# define CONCAT(a,b) a##b -# define CONCAT3(a,b,c) a##b##c -# define STRING(a) #a -#else -# define CONCAT(a,b) a/**/b -# define CONCAT3(a,b,c) a/**/b/**/c -# define STRING(a) "a" -#endif - -#ifdef __STDC__ -typedef bool_t (*rpcsvc_fn_t)(struct svc_req *, void *argp, void *resp); -#else -typedef bool_t (*rpcsvc_fn_t)(); -#endif - -#define table_ent(func, vers, arg_type, res_type) \ - { STRING(func), \ - (rpcsvc_fn_t)CONCAT(func,_svc), vers,\ - (xdrproc_t)CONCAT(xdr_, arg_type), sizeof(arg_type), \ - (xdrproc_t)CONCAT(xdr_, res_type), sizeof(res_type), \ - } -#define nlm_undef_svc NULL -#define xdr_nlm_void xdr_void - -struct dispatch_entry { - const char *name; - rpcsvc_fn_t func; - unsigned int versions; /* bitmap of versions */ - xdrproc_t xdr_arg_fn; /* argument XDR */ - size_t xdr_arg_size; - xdrproc_t xdr_res_fn; /* result XDR */ - size_t xdr_res_size; -}; - -void rpc_dispatch(struct svc_req *rq, SVCXPRT *tp, - struct dispatch_entry *dtable, int nproc, - void *argp, void *resp); -void rpc_svcrun(void); - -#endif /* RPCDISPATCH_H */ diff --git a/support/include/rpcsec.h b/support/include/rpcsec.h deleted file mode 100644 index 84d4497..0000000 --- a/support/include/rpcsec.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Declarations needed for the authdes library. Some of the functions - * mentioned herein have been omitted from the Linux libc header files - */ - -#ifndef RPCSEC_H -#define RPCSEC_H - -int netname2user(char *netname, int *uidp, int *gidp, - int *gidlenp, int *gidlist); -int netname2host(char *netname, char *hostname, int hostlen); -int getnetname(char *name); -int user2netname(char *netname, int uid, char *domain); -int host2netname(char *netname, char *hostname, char *domain); -void passwd2des(char *pw, char *key); -int getsecretkey(char *netname, char *secretkey, char *passwd); -int getpublickey(char *hostname, char *publickey); -int yp_update(char *domain, char *map, unsigned int ypop, - char *key, int keylen, char *data, int datalen); -int key_setsecret(char *secret); -int xencrypt(char *secret, char *passwd); -int xdecrypt(char *secret, char *passwd); - - -#define PUBLICKEY_MAP "publickey.byname" -#define NETID_MAP "netid.byname" - -#ifndef DEBUG -#define RPCSEC_BASE "/etc/" -#else -#define RPCSEC_BASE "/tmp/" -#endif - -#define PUBLICKEY_FILE RPCSEC_BASE "publickey" -#define PUBLICKEY_LOCK RPCSEC_BASE "publickey.lock" -#define ROOTKEY_FILE RPCSEC_BASE ".rootkey" -#define KEYSTORE_FILE RPCSEC_BASE "keystore" - -#endif /* RPCSEC_H */ diff --git a/support/include/version.h b/support/include/version.h deleted file mode 100644 index a74ec35..0000000 --- a/support/include/version.h +++ /dev/null @@ -1 +0,0 @@ -#define VERSION "1.4.7 (0.4.22)" diff --git a/support/include/ypupdate.h b/support/include/ypupdate.h deleted file mode 100644 index e0cee15..0000000 --- a/support/include/ypupdate.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * ypupdate.h This file contains the public declarations for the - * ypupdate client side RPC stubs. - * - * Copyright (C) 1995 Olaf Kirch <okir@monad.swb.de> - */ - -#ifndef YPUPDATE_H -#define YPUPDATE_H - -#include <rpcsvc/ypclnt.h> - -int yp_update(char *domain, char *map, unsigned int ypop, - char *key, int keylen, char *data, int datalen); - -#endif YPUPDATE_H |