summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/packet.h b/packet.h
index 0a64eb2a5..bfe7da615 100644
--- a/packet.h
+++ b/packet.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.h,v 1.73 2016/09/30 09:19:13 markus Exp $ */ 1/* $OpenBSD: packet.h,v 1.74 2016/10/11 21:47:45 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -78,6 +78,9 @@ struct ssh {
78 void *app_data; 78 void *app_data;
79}; 79};
80 80
81typedef int (ssh_packet_hook_fn)(struct ssh *, struct sshbuf *,
82 u_char *, void *);
83
81struct ssh *ssh_alloc_session_state(void); 84struct ssh *ssh_alloc_session_state(void);
82struct ssh *ssh_packet_set_connection(struct ssh *, int, int); 85struct ssh *ssh_packet_set_connection(struct ssh *, int, int);
83void ssh_packet_set_timeout(struct ssh *, int, int); 86void ssh_packet_set_timeout(struct ssh *, int, int);
@@ -88,6 +91,8 @@ int ssh_packet_get_connection_in(struct ssh *);
88int ssh_packet_get_connection_out(struct ssh *); 91int ssh_packet_get_connection_out(struct ssh *);
89void ssh_packet_close(struct ssh *); 92void ssh_packet_close(struct ssh *);
90void ssh_packet_set_encryption_key(struct ssh *, const u_char *, u_int, int); 93void ssh_packet_set_encryption_key(struct ssh *, const u_char *, u_int, int);
94void ssh_packet_set_input_hook(struct ssh *, ssh_packet_hook_fn *, void *);
95
91int ssh_packet_is_rekeying(struct ssh *); 96int ssh_packet_is_rekeying(struct ssh *);
92void ssh_packet_set_protocol_flags(struct ssh *, u_int); 97void ssh_packet_set_protocol_flags(struct ssh *, u_int);
93u_int ssh_packet_get_protocol_flags(struct ssh *); 98u_int ssh_packet_get_protocol_flags(struct ssh *);