summaryrefslogtreecommitdiff
path: root/monitor.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-01-19 21:43:07 +0000
committerDamien Miller <djm@mindrot.org>2019-01-20 09:45:18 +1100
commitec00f918b8ad90295044266c433340a8adc93452 (patch)
tree445c6ca9d5f6e17cdd7ddc891816dd03d0266872 /monitor.h
parent6350e0316981489d4205952d6904d6fedba5bfe0 (diff)
upstream: convert monitor.c to new packet API
with & ok markus@ OpenBSD-Commit-ID: 61ecd154bd9804461a0cf5f495a29d919e0014d5
Diffstat (limited to 'monitor.h')
-rw-r--r--monitor.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/monitor.h b/monitor.h
index 16047299f..a4b68fbe2 100644
--- a/monitor.h
+++ b/monitor.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor.h,v 1.21 2018/07/09 21:53:45 markus Exp $ */ 1/* $OpenBSD: monitor.h,v 1.22 2019/01/19 21:43:07 djm Exp $ */
2 2
3/* 3/*
4 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 4 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
@@ -65,6 +65,8 @@ enum monitor_reqtype {
65 65
66}; 66};
67 67
68struct ssh;
69
68struct monitor { 70struct monitor {
69 int m_recvfd; 71 int m_recvfd;
70 int m_sendfd; 72 int m_sendfd;
@@ -78,11 +80,11 @@ struct monitor *monitor_init(void);
78void monitor_reinit(struct monitor *); 80void monitor_reinit(struct monitor *);
79 81
80struct Authctxt; 82struct Authctxt;
81void monitor_child_preauth(struct Authctxt *, struct monitor *); 83void monitor_child_preauth(struct ssh *, struct monitor *);
82void monitor_child_postauth(struct monitor *); 84void monitor_child_postauth(struct ssh *, struct monitor *);
83 85
84struct mon_table; 86void monitor_clear_keystate(struct ssh *, struct monitor *);
85int monitor_read(struct monitor*, struct mon_table *, struct mon_table **); 87void monitor_apply_keystate(struct ssh *, struct monitor *);
86 88
87/* Prototypes for request sending and receiving */ 89/* Prototypes for request sending and receiving */
88void mm_request_send(int, enum monitor_reqtype, struct sshbuf *); 90void mm_request_send(int, enum monitor_reqtype, struct sshbuf *);