summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2016-10-23 22:04:05 +0000
committerDarren Tucker <dtucker@zip.com.au>2016-10-24 10:42:57 +1100
commit1c4ef0b808d3d38232aeeb1cebb7e9a43def42c5 (patch)
treea50f4076f566c6182fa931c28fe0ede424aabba3 /misc.h
parent0b9ee623d57e5de7e83e66fd61a7ba9a5be98894 (diff)
upstream commit
Factor out "can bind to low ports" check into its own function. This will make it easier for Portable to support platforms with permissions models other than uid==0 (eg bz#2625). ok djm@, "doesn't offend me too much" deraadt@. Upstream-ID: 86213df4183e92b8f189a6d2dac858c994bfface
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index 8f954198b..3578e8ef5 100644
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: misc.h,v 1.59 2016/09/12 01:22:38 deraadt Exp $ */ 1/* $OpenBSD: misc.h,v 1.60 2016/10/23 22:04:05 dtucker Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -30,6 +30,7 @@ struct Forward {
30}; 30};
31 31
32int forward_equals(const struct Forward *, const struct Forward *); 32int forward_equals(const struct Forward *, const struct Forward *);
33int bind_permitted(int, uid_t);
33 34
34/* Common server and client forwarding options. */ 35/* Common server and client forwarding options. */
35struct ForwardOptions { 36struct ForwardOptions {