summaryrefslogtreecommitdiff
path: root/monitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.h')
-rw-r--r--monitor.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/monitor.h b/monitor.h
index 8f65e684d..4d87284aa 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.23 2019/01/19 21:43:56 djm Exp $ */
2 2
3/* 3/*
4 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 4 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
@@ -67,9 +67,10 @@ enum monitor_reqtype {
67 MONITOR_REQ_GSSUPCREDS = 152, MONITOR_ANS_GSSUPCREDS = 153, 67 MONITOR_REQ_GSSUPCREDS = 152, MONITOR_ANS_GSSUPCREDS = 153,
68 68
69 MONITOR_REQ_AUTHROLE = 154, 69 MONITOR_REQ_AUTHROLE = 154,
70
71}; 70};
72 71
72struct ssh;
73
73struct monitor { 74struct monitor {
74 int m_recvfd; 75 int m_recvfd;
75 int m_sendfd; 76 int m_sendfd;
@@ -83,15 +84,16 @@ struct monitor *monitor_init(void);
83void monitor_reinit(struct monitor *); 84void monitor_reinit(struct monitor *);
84 85
85struct Authctxt; 86struct Authctxt;
86void monitor_child_preauth(struct Authctxt *, struct monitor *); 87void monitor_child_preauth(struct ssh *, struct monitor *);
87void monitor_child_postauth(struct monitor *); 88void monitor_child_postauth(struct ssh *, struct monitor *);
88 89
89struct mon_table; 90void monitor_clear_keystate(struct ssh *, struct monitor *);
90int monitor_read(struct monitor*, struct mon_table *, struct mon_table **); 91void monitor_apply_keystate(struct ssh *, struct monitor *);
91 92
92/* Prototypes for request sending and receiving */ 93/* Prototypes for request sending and receiving */
93void mm_request_send(int, enum monitor_reqtype, struct sshbuf *); 94void mm_request_send(int, enum monitor_reqtype, struct sshbuf *);
94void mm_request_receive(int, struct sshbuf *); 95void mm_request_receive(int, struct sshbuf *);
95void mm_request_receive_expect(int, enum monitor_reqtype, struct sshbuf *); 96void mm_request_receive_expect(int, enum monitor_reqtype, struct sshbuf *);
97void mm_get_keystate(struct ssh *, struct monitor *);
96 98
97#endif /* _MONITOR_H_ */ 99#endif /* _MONITOR_H_ */