summaryrefslogtreecommitdiff
path: root/tirpc
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2015-06-10 14:02:30 -0400
committerSteve Dickson <steved@redhat.com>2015-06-16 11:34:38 -0400
commitcc9148f915b745c0a4e3849f9576e0dfe8eae1b2 (patch)
tree9288ac593a16d1c5a9b16ddcfa83c6c7c0c6fa3c /tirpc
parentb5ac6692bfc695eb52bd71c83b4976c2bba15d5b (diff)
downloadti-rpc-cc9148f915b745c0a4e3849f9576e0dfe8eae1b2.tar.gz
Revert commit ddf99776a7a9 ('auth.h: Remove unsupported routine . . .')
These are part of glibc backward compatibility, and cannot be removed yet. Reported-by: Thorsten Kukuk <kukuk@suse.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
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