options.c: Add support for openssh config +,-,^

These features allow for options Ciphers, HostKeyAlgorithms, KexAlgorithms and
MACs to append, remove and prepend to the default list of algorithms
respectively

Signed-off-by: Norbert Pocs <npocs@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Norbert Pocs
2022-11-07 13:13:20 +01:00
committed by Jakub Jelen
parent 039d1b2775
commit 01e9341d10
3 changed files with 161 additions and 89 deletions

View File

@@ -29,7 +29,8 @@ int ssh_config_parse_file(ssh_session session, const char *filename);
int ssh_config_parse_string(ssh_session session, const char *input);
int ssh_options_set_algo(ssh_session session,
enum ssh_kex_types_e algo,
const char *list);
const char *list,
char **place);
int ssh_options_apply(ssh_session session);
#ifdef __cplusplus