diff options
Diffstat (limited to 'monitor.h')
-rw-r--r-- | monitor.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 | ||
72 | struct ssh; | ||
73 | |||
73 | struct monitor { | 74 | struct 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); | |||
83 | void monitor_reinit(struct monitor *); | 84 | void monitor_reinit(struct monitor *); |
84 | 85 | ||
85 | struct Authctxt; | 86 | struct Authctxt; |
86 | void monitor_child_preauth(struct Authctxt *, struct monitor *); | 87 | void monitor_child_preauth(struct ssh *, struct monitor *); |
87 | void monitor_child_postauth(struct monitor *); | 88 | void monitor_child_postauth(struct ssh *, struct monitor *); |
88 | 89 | ||
89 | struct mon_table; | 90 | void monitor_clear_keystate(struct ssh *, struct monitor *); |
90 | int monitor_read(struct monitor*, struct mon_table *, struct mon_table **); | 91 | void monitor_apply_keystate(struct ssh *, struct monitor *); |
91 | 92 | ||
92 | /* Prototypes for request sending and receiving */ | 93 | /* Prototypes for request sending and receiving */ |
93 | void mm_request_send(int, enum monitor_reqtype, struct sshbuf *); | 94 | void mm_request_send(int, enum monitor_reqtype, struct sshbuf *); |
94 | void mm_request_receive(int, struct sshbuf *); | 95 | void mm_request_receive(int, struct sshbuf *); |
95 | void mm_request_receive_expect(int, enum monitor_reqtype, struct sshbuf *); | 96 | void mm_request_receive_expect(int, enum monitor_reqtype, struct sshbuf *); |
97 | void mm_get_keystate(struct ssh *, struct monitor *); | ||
96 | 98 | ||
97 | #endif /* _MONITOR_H_ */ | 99 | #endif /* _MONITOR_H_ */ |