diff options
author | Jakub Jelen <jjelen@redhat.com> | 2018-11-15 13:43:18 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-01-09 10:31:49 +0100 |
commit | 58cae2366a801d6d3702d2fa8895976d4c169bd7 (patch) | |
tree | 7234181cbf462cf18938fd34f7f8d1bce7a0e800 /include/libssh/kex.h | |
parent | c86a00d06b732c57153bdd5677a5d77f7f1be0a9 (diff) | |
download | libssh-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/kex.h')
-rw-r--r-- | include/libssh/kex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/kex.h b/include/libssh/kex.h index a626d105..644a3956 100644 --- a/include/libssh/kex.h +++ b/include/libssh/kex.h @@ -46,5 +46,7 @@ const char *ssh_kex_get_supported_method(uint32_t algo); const char *ssh_kex_get_default_methods(uint32_t algo); const char *ssh_kex_get_description(uint32_t algo); char *ssh_client_select_hostkeys(ssh_session session); +int ssh_send_rekex(ssh_session session); +int server_set_kex(ssh_session session); #endif /* KEX_H_ */ |