summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/auth_unix.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/auth_unix.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/auth_unix.c')
-rw-r--r--lib/libc/rpc/auth_unix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c
index c0b2565c17a..de2262ce747 100644
--- a/lib/libc/rpc/auth_unix.c
+++ b/lib/libc/rpc/auth_unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth_unix.c,v 1.24 2015/09/02 06:47:19 deraadt Exp $ */
+/* $OpenBSD: auth_unix.c,v 1.25 2015/09/13 15:36:56 guenther Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -158,6 +158,7 @@ authfail:
free(auth);
return (NULL);
}
+DEF_WEAK(authunix_create);
/*
@@ -201,6 +202,7 @@ authunix_create_default(void)
gids2[i] = gids[i];
return (authunix_create(machname, uid, gid, len, gids2));
}
+DEF_WEAK(authunix_create_default);
/*
* authunix operations