diff options
-rw-r--r-- | src/auth_des.c | 2 | ||||
-rw-r--r-- | tirpc/rpc/auth.h | 32 | ||||
-rw-r--r-- | tirpc/rpc/auth_des.h | 2 |
3 files changed, 34 insertions, 2 deletions
diff --git a/src/auth_des.c b/src/auth_des.c index 543bd4b..f8749b0 100644 --- a/src/auth_des.c +++ b/src/auth_des.c @@ -77,8 +77,6 @@ static bool_t authdes_marshal(AUTH *, XDR *); static bool_t authdes_validate(AUTH *, struct opaque_auth *); static bool_t authdes_refresh(AUTH *, void *); static void authdes_destroy(AUTH *); -extern int key_gendes(des_block *deskey); -extern int getpublickey (const char *, char *); static struct auth_ops *authdes_ops(void); 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 |