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>
This commit is contained in:
Jakub Jelen
2018-11-01 18:35:12 +01:00
committed by Andreas Schneider
parent 78427a9264
commit e973f95b37
3 changed files with 38 additions and 0 deletions

View File

@@ -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 {

View File

@@ -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;