summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2024-07-01 14:01:36 +0000
committerEd Maste <emaste@FreeBSD.org>2024-07-01 14:01:36 +0000
commitd565364dadebdaabef4ecead36ae102774e81174 (patch)
treedc22dc885255344e9a27e99a9d4ab2f9b3ec211f /misc.h
parent9200ce3210fdc00706904d2eb2d8a481ed84eef3 (diff)
Vendor import of OpenSSH 9.8p1vendor/openssh/9.8p1
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index 9bacce5203de..113403896d8a 100644
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.h,v 1.107 2024/03/04 02:16:11 djm Exp $ */
+/* $OpenBSD: misc.h,v 1.109 2024/06/06 17:15:25 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -21,6 +21,12 @@
#include <stdio.h>
#include <signal.h>
+/* special-case port number meaning allow any port */
+#define FWD_PERMIT_ANY_PORT 0
+
+/* special-case wildcard meaning allow any host */
+#define FWD_PERMIT_ANY_HOST "*"
+
/* Data structure for representing a forwarding request. */
struct Forward {
char *listen_host; /* Host (address) to listen on. */
@@ -34,6 +40,8 @@ struct Forward {
};
int forward_equals(const struct Forward *, const struct Forward *);
+int permitopen_port(const char *p);
+
int daemonized(void);
/* Common server and client forwarding options. */
@@ -244,6 +252,7 @@ void notify_complete(struct notifier_ctx *, const char *, ...)
typedef void (*sshsig_t)(int);
sshsig_t ssh_signal(int, sshsig_t);
+int signal_is_crash(int);
/* On OpenBSD time_t is int64_t which is long long. */
/* #define SSH_TIME_T_MAX LLONG_MAX */