summaryrefslogtreecommitdiff
path: root/tirpc
diff options
context:
space:
mode:
Diffstat (limited to 'tirpc')
-rw-r--r--tirpc/rpc/auth.h32
-rw-r--r--tirpc/rpc/auth_des.h2
2 files changed, 34 insertions, 0 deletions
diff --git a/tirpc/rpc/auth.h b/tirpc/rpc/auth.h
index f7fa16c..1b6c699 100644
--- a/tirpc/rpc/auth.h
+++ b/tirpc/rpc/auth.h
@@ -369,6 +369,38 @@ extern void passwd2des ( char *, char * );
}
#endif
+/*
+ *
+ * These routines interface to the keyserv daemon
+ *
+ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+extern int key_decryptsession(const char *, des_block *);
+extern int key_encryptsession(const char *, des_block *);
+#ifdef HAVE_AUTHDES
+extern int key_gendes(des_block *);
+#endif /* HAVE_AUTHDES */
+extern int key_setsecret(const char *);
+extern int key_secretkey_is_set(void);
+#ifdef __cplusplus
+}
+#endif
+
+/*
+ * Publickey routines.
+ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+extern int getpublickey (const char *, char *);
+extern int getpublicandprivatekey (char *, char *);
+extern int getsecretkey (char *, char *, char *);
+#ifdef __cplusplus
+}
+#endif
+
#ifdef KERBEROS
/*
* Kerberos style authentication
diff --git a/tirpc/rpc/auth_des.h b/tirpc/rpc/auth_des.h
index 8abb4ca..77e169d 100644
--- a/tirpc/rpc/auth_des.h
+++ b/tirpc/rpc/auth_des.h
@@ -127,6 +127,8 @@ extern "C" {
#endif
extern bool_t xdr_authdes_cred(XDR *, struct authdes_cred *);
extern bool_t xdr_authdes_verf(XDR *, struct authdes_verf *);
+extern int rtime(dev_t, struct netbuf *, int, struct timeval *,
+ struct timeval *);
extern void kgetnetname(char *);
extern enum auth_stat _svcauth_des(struct svc_req *, struct rpc_msg *);
#ifdef __cplusplus