summaryrefslogtreecommitdiffstats
path: root/support/include/rpcsec.h
diff options
context:
space:
mode:
authorhjl <hjl>1999-10-18 23:21:12 +0000
committerhjl <hjl>1999-10-18 23:21:12 +0000
commit8b7ad01b14df1e7529b9ba8a1ea17df0d6004ef9 (patch)
tree0904ef8554ed680fe3244fa618685e1fb7ea148b /support/include/rpcsec.h
downloadnfs-utils-8b7ad01b14df1e7529b9ba8a1ea17df0d6004ef9.tar.gz
nfs-utils-8b7ad01b14df1e7529b9ba8a1ea17df0d6004ef9.tar.xz
nfs-utils-8b7ad01b14df1e7529b9ba8a1ea17df0d6004ef9.zip
Initial revision
Diffstat (limited to 'support/include/rpcsec.h')
-rw-r--r--support/include/rpcsec.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/support/include/rpcsec.h b/support/include/rpcsec.h
new file mode 100644
index 0000000..84d4497
--- /dev/null
+++ b/support/include/rpcsec.h
@@ -0,0 +1,39 @@
+/*
+ * 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 */