X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=support%2Finclude%2Frpcsec.h;fp=support%2Finclude%2Frpcsec.h;h=0000000000000000000000000000000000000000;hb=9f5b40b7a68fe0a2648565ecbd4b08bf60287130;hp=84d449796cd0fcf3f89c22806d34e4ca00fc2db2;hpb=fbb1602bbd34cbe89dd55ca6eaaa19432237db1d;p=nfs-utils.git 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 */