aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/session.h
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-11-15 13:43:18 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-09 10:31:49 +0100
commit58cae2366a801d6d3702d2fa8895976d4c169bd7 (patch)
tree7234181cbf462cf18938fd34f7f8d1bce7a0e800 /include/libssh/session.h
parentc86a00d06b732c57153bdd5677a5d77f7f1be0a9 (diff)
downloadlibssh-58cae2366a801d6d3702d2fa8895976d4c169bd7.tar.gz
libssh-58cae2366a801d6d3702d2fa8895976d4c169bd7.tar.xz
libssh-58cae2366a801d6d3702d2fa8895976d4c169bd7.zip
packet: Implement rekeying based on the recommendation from RFC's
The default rekeying recommendations are specified in RFC4344 Section 3 (First and Second Rekeying Recommendations). Additionally, the rekeying can be specified in configuration file/options allowing us to turn the rekeying off, base it on time or make it more strict. The code is highly inspired by the OpenSSH rekeying code. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Daiki Ueno <dueno@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r--include/libssh/session.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/session.h b/include/libssh/session.h
index fb443b59..86540bbf 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -135,6 +135,8 @@ struct ssh_session_struct {
ssh_buffer in_buffer;
PACKET in_packet;
ssh_buffer out_buffer;
+ struct ssh_list *out_queue; /* This list is used for delaying packets
+ when rekeying is required */
/* the states are used by the nonblocking stuff to remember */
/* where it was before being interrupted */