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);
}
#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
#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