aboutsummaryrefslogtreecommitdiff
path: root/include/rpc
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-02-05 23:43:43 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-02-05 23:43:43 +0000
commit8d6301358e34f15e019022cc5321bbd950a1fa01 (patch)
treeca23ccb17e63c2c0a7eeb6827d3211f8f37a1089 /include/rpc
parent64eecf3a43ff4eace513b9aa6667dc9abec56050 (diff)
downloadsrc-8d6301358e34f15e019022cc5321bbd950a1fa01.tar.gz
src-8d6301358e34f15e019022cc5321bbd950a1fa01.zip
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
Notes
Notes: svn path=/head/; revision=90271
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 a210a5e32834..ce20370e6cc4 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 8add5d4c6a03..f47db238467d 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 **));