mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Remove obsolete ecdsa key support
This commit is contained in:
parent
22d6a39e50
commit
55ffd5b64b
@ -327,7 +327,6 @@ static ssh_bind prepare_ssh(const char *keys_dir, const char *bind_addr, int por
|
||||
char buffer[PATH_MAX];
|
||||
int ssh_log_level;
|
||||
ssh_key rsakey = NULL;
|
||||
ssh_key ecdsakey = NULL;
|
||||
ssh_key ed25519key = NULL;
|
||||
|
||||
ssh_log_level = SSH_LOG_WARNING + max(log_get_level() - LOG_NOTICE, 0);
|
||||
@ -352,10 +351,6 @@ static ssh_bind prepare_ssh(const char *keys_dir, const char *bind_addr, int por
|
||||
ssh_pki_import_privkey_file(buffer, NULL, NULL, NULL, &ed25519key);
|
||||
ssh_bind_options_set(bind, SSH_BIND_OPTIONS_IMPORT_KEY, ed25519key);
|
||||
|
||||
sprintf(buffer, "%s/ssh_host_ecdsa_key", keys_dir);
|
||||
ssh_pki_import_privkey_file(buffer, NULL, NULL, NULL, &ecdsakey);
|
||||
ssh_bind_options_set(bind, SSH_BIND_OPTIONS_IMPORT_KEY, ecdsakey);
|
||||
|
||||
if (ssh_bind_listen(bind) < 0)
|
||||
tmate_fatal("Error listening to socket: %s\n", ssh_get_error(bind));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user