diff options
author | Jakub Jelen <jjelen@redhat.com> | 2018-11-01 18:35:12 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-01-09 10:14:56 +0100 |
commit | e973f95b373e6d9ef50da11171aecc2bdf1b5c4b (patch) | |
tree | da33f39e6d75bb6c4f5fb47896dff4322536e9d5 /include | |
parent | 78427a9264c911c91fc40e0fda78e61d57b44d68 (diff) | |
download | libssh-e973f95b373e6d9ef50da11171aecc2bdf1b5c4b.tar.gz libssh-e973f95b373e6d9ef50da11171aecc2bdf1b5c4b.tar.xz libssh-e973f95b373e6d9ef50da11171aecc2bdf1b5c4b.zip |
options: Introduce new options for handling rekey limits
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')
-rw-r--r-- | include/libssh/libssh.h | 2 | ||||
-rw-r--r-- | include/libssh/session.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index c81accd7..30a438f4 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -406,6 +406,8 @@ enum ssh_options_e { SSH_OPTIONS_NODELAY, SSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES, SSH_OPTIONS_PROCESS_CONFIG, + SSH_OPTIONS_REKEY_DATA, + SSH_OPTIONS_REKEY_TIME, }; enum { diff --git a/include/libssh/session.h b/include/libssh/session.h index 0c015fa0..109cb5f5 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -222,6 +222,8 @@ struct ssh_session_struct { int nodelay; bool config_processed; uint8_t options_seen[SOC_MAX]; + uint64_t rekey_data; + uint32_t rekey_time; } opts; /* counters */ ssh_counter socket_counter; |