summaryrefslogtreecommitdiffstats
path: root/include/rpc
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-02-05 23:43:43 +0000
committeralfred <alfred@FreeBSD.org>2002-02-05 23:43:43 +0000
commit568956257500195a80a63ba67f283e98c05c43c1 (patch)
treeca23ccb17e63c2c0a7eeb6827d3211f8f37a1089 /include/rpc
parentfbd5ea601d57ce0f9ffdf4197a2613cb7cbc8fe2 (diff)
downloadFreeBSD-src-568956257500195a80a63ba67f283e98c05c43c1.zip
FreeBSD-src-568956257500195a80a63ba67f283e98c05c43c1.tar.gz
Fix cc -Wall, fix rcsid warnings, add missing prototypes,
change prototypes to be the same as in the original sun tirpc code. Remove ()P macro in a file where the mayority had ()P already removed. Add them if the mayority use ()P macros. Submitted by: mbr Requested by: bde
Diffstat (limited to 'include/rpc')
-rw-r--r--include/rpc/auth.h17
-rw-r--r--include/rpc/rpc_com.h1
2 files changed, 14 insertions, 4 deletions
diff --git a/include/rpc/auth.h b/include/rpc/auth.h
index a210a5e..ce20370 100644
--- a/include/rpc/auth.h
+++ b/include/rpc/auth.h
@@ -267,7 +267,7 @@ extern AUTH *authdes_seccreate (const char *, const u_int, const char *,
__END_DECLS
__BEGIN_DECLS
-extern bool_t xdr_opaque_auth __P((XDR *, struct opaque_auth *));
+extern bool_t xdr_opaque_auth (XDR *, struct opaque_auth *);
__END_DECLS
#define authsys_create(c,i1,i2,i3,ip) authunix_create((c),(i1),(i2),(i3),(ip))
@@ -298,6 +298,15 @@ extern int key_setsecret(const char *);
extern int key_secretkey_is_set(void);
__END_DECLS
+/*
+ * Publickey routines.
+ */
+__BEGIN_DECLS
+extern int getpublickey (const char *, char *);
+extern int getpublicandprivatekey (char *, char *);
+extern int getsecretkey (char *, char *, char *);
+__END_DECLS
+
#ifdef KERBEROS
/*
* Kerberos style authentication
@@ -334,9 +343,9 @@ __END_DECLS
__BEGIN_DECLS
struct svc_req;
struct rpc_msg;
-enum auth_stat _svcauth_null __P((struct svc_req *, struct rpc_msg *));
-enum auth_stat _svcauth_short __P((struct svc_req *, struct rpc_msg *));
-enum auth_stat _svcauth_unix __P((struct svc_req *, struct rpc_msg *));
+enum auth_stat _svcauth_null (struct svc_req *, struct rpc_msg *);
+enum auth_stat _svcauth_short (struct svc_req *, struct rpc_msg *);
+enum auth_stat _svcauth_unix (struct svc_req *, struct rpc_msg *);
__END_DECLS
#define AUTH_NONE 0 /* no authentication */
diff --git a/include/rpc/rpc_com.h b/include/rpc/rpc_com.h
index 8add5d4..f47db23 100644
--- a/include/rpc/rpc_com.h
+++ b/include/rpc/rpc_com.h
@@ -59,6 +59,7 @@
__BEGIN_DECLS
extern u_int __rpc_get_a_size __P((int));
extern int __rpc_dtbsize __P((void));
+extern int _rpc_dtablesize __P((void));
extern struct netconfig * __rpcgettp __P((int));
extern int __rpc_get_default_domain __P((char **));
OpenPOWER on IntegriCloud