1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

options: Use ssh_key_type_e in ssh_options_set_algo()

Review with 'git show -b'

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2017-08-24 17:44:33 +02:00
parent 6803c2f86d
commit 4c602f2255
2 changed files with 18 additions and 14 deletions

View File

@@ -22,7 +22,9 @@
#define _OPTIONS_H #define _OPTIONS_H
int ssh_config_parse_file(ssh_session session, const char *filename); int ssh_config_parse_file(ssh_session session, const char *filename);
int ssh_options_set_algo(ssh_session session, int algo, const char *list); int ssh_options_set_algo(ssh_session session,
enum ssh_kex_types_e algo,
const char *list);
int ssh_options_apply(ssh_session session); int ssh_options_apply(ssh_session session);
#endif /* _OPTIONS_H */ #endif /* _OPTIONS_H */

View File

@@ -162,8 +162,10 @@ int ssh_options_copy(ssh_session src, ssh_session *dest) {
return 0; return 0;
} }
int ssh_options_set_algo(ssh_session session, int algo, int ssh_options_set_algo(ssh_session session,
const char *list) { enum ssh_kex_types_e algo,
const char *list)
{
char *p = NULL; char *p = NULL;
p = ssh_keep_known_algos(algo, list); p = ssh_keep_known_algos(algo, list);