add moduli file location as an ssh_bind option

Signed-off-by: Andrew Wiley <wiley@outlook.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andrew Wiley
2021-05-01 12:19:18 -07:00
parent 6aa88e22d6
commit c40576c6f6
7 changed files with 48 additions and 5 deletions

View File

@@ -50,6 +50,7 @@ struct ssh_bind_struct {
bool config_processed;
char *config_dir;
char *pubkey_accepted_key_types;
char* moduli_file;
};
struct ssh_poll_handle_struct *ssh_bind_get_poll(struct ssh_bind_struct

View File

@@ -56,6 +56,7 @@ enum ssh_bind_options_e {
SSH_BIND_OPTIONS_PUBKEY_ACCEPTED_KEY_TYPES,
SSH_BIND_OPTIONS_HOSTKEY_ALGORITHMS,
SSH_BIND_OPTIONS_PROCESS_CONFIG,
SSH_BIND_OPTIONS_MODULI,
};
typedef struct ssh_bind_struct* ssh_bind;

View File

@@ -217,6 +217,7 @@ struct ssh_session_struct {
char *pubkey_accepted_types;
char *ProxyCommand;
char *custombanner;
char *moduli_file;
unsigned long timeout; /* seconds */
unsigned long timeout_usec;
unsigned int port;