diff options
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.h,v 1.74 2016/10/11 21:47:45 djm Exp $ */ | 1 | /* $OpenBSD: packet.h,v 1.76 2017/02/03 23:03:33 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -62,6 +62,9 @@ struct ssh { | |||
62 | char *local_ipaddr; | 62 | char *local_ipaddr; |
63 | int local_port; | 63 | int local_port; |
64 | 64 | ||
65 | /* Optional preamble for log messages (e.g. username) */ | ||
66 | char *log_preamble; | ||
67 | |||
65 | /* Dispatcher table */ | 68 | /* Dispatcher table */ |
66 | dispatch_fn *dispatch[DISPATCH_MAX]; | 69 | dispatch_fn *dispatch[DISPATCH_MAX]; |
67 | /* number of packets to ignore in the dispatcher */ | 70 | /* number of packets to ignore in the dispatcher */ |
@@ -104,6 +107,8 @@ void ssh_packet_set_server(struct ssh *); | |||
104 | void ssh_packet_set_authenticated(struct ssh *); | 107 | void ssh_packet_set_authenticated(struct ssh *); |
105 | void ssh_packet_set_mux(struct ssh *); | 108 | void ssh_packet_set_mux(struct ssh *); |
106 | int ssh_packet_get_mux(struct ssh *); | 109 | int ssh_packet_get_mux(struct ssh *); |
110 | int ssh_packet_set_log_preamble(struct ssh *, const char *, ...) | ||
111 | __attribute__((format(printf, 2, 3))); | ||
107 | 112 | ||
108 | int ssh_packet_log_type(u_char); | 113 | int ssh_packet_log_type(u_char); |
109 | 114 | ||
@@ -154,7 +159,7 @@ int ssh_remote_port(struct ssh *); | |||
154 | const char *ssh_local_ipaddr(struct ssh *); | 159 | const char *ssh_local_ipaddr(struct ssh *); |
155 | int ssh_local_port(struct ssh *); | 160 | int ssh_local_port(struct ssh *); |
156 | 161 | ||
157 | void ssh_packet_set_rekey_limits(struct ssh *, u_int64_t, time_t); | 162 | void ssh_packet_set_rekey_limits(struct ssh *, u_int64_t, u_int32_t); |
158 | time_t ssh_packet_get_rekey_timeout(struct ssh *); | 163 | time_t ssh_packet_get_rekey_timeout(struct ssh *); |
159 | 164 | ||
160 | void *ssh_packet_get_input(struct ssh *); | 165 | void *ssh_packet_get_input(struct ssh *); |