From cc9148f915b745c0a4e3849f9576e0dfe8eae1b2 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Wed, 10 Jun 2015 14:02:30 -0400 Subject: Revert commit ddf99776a7a9 ('auth.h: Remove unsupported routine . . .') These are part of glibc backward compatibility, and cannot be removed yet. Reported-by: Thorsten Kukuk Signed-off-by: Chuck Lever --- tirpc/rpc/auth.h | 32 ++++++++++++++++++++++++++++++++ tirpc/rpc/auth_des.h | 2 ++ 2 files changed, 34 insertions(+) (limited to 'tirpc') 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 -- cgit v1.2.1