summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc_auth.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-13 15:36:56 +0000
committerguenther <guenther@openbsd.org>2015-09-13 15:36:56 +0000
commit85858ec2de0a5bfea0d5f098a39cf144ad74f89a (patch)
tree642ce8eae01884bf58cc31dd547155778b95a772 /lib/libc/rpc/svc_auth.c
parentWrap <pwd.h> so that calls go direct and the symbols are all weak. (diff)
downloadwireguard-openbsd-85858ec2de0a5bfea0d5f098a39cf144ad74f89a.tar.xz
wireguard-openbsd-85858ec2de0a5bfea0d5f098a39cf144ad74f89a.zip
Wrap <rpc/*.h> so that calls go direct and the symbols are all weak.
Hide __xprt_register() and _authenticate(); truncate <rpc/svc_auth.h> ok deraadt@
Diffstat (limited to 'lib/libc/rpc/svc_auth.c')
-rw-r--r--lib/libc/rpc/svc_auth.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/rpc/svc_auth.c b/lib/libc/rpc/svc_auth.c
index 4ff84636ae8..67ab5df1878 100644
--- a/lib/libc/rpc/svc_auth.c
+++ b/lib/libc/rpc/svc_auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svc_auth.c,v 1.8 2010/09/01 14:43:34 millert Exp $ */
+/* $OpenBSD: svc_auth.c,v 1.9 2015/09/13 15:36:56 guenther Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -55,10 +55,7 @@
/* no authentication */
enum auth_stat _svcauth_null(void);
-/* unix style (uid, gids) */
-enum auth_stat _svcauth_unix(struct svc_req *rqst, struct rpc_msg *msg);
-/* short hand unix style */
-enum auth_stat _svcauth_short(struct svc_req *rqst, struct rpc_msg *msg);
+PROTO_NORMAL(_svcauth_null);
static struct {
enum auth_stat (*authenticator)();
@@ -112,3 +109,4 @@ _svcauth_null(void)
return (AUTH_OK);
}
+DEF_STRONG(_svcauth_null);