1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

Deprecate SSH_BIND_OPTIONS_{RSA,ECDSA}KEY in favor of generic HOSTKEY

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Norbert Pocs <npocs@redhat.com>
This commit is contained in:
Jakub Jelen
2023-06-26 15:00:44 +02:00
parent 1bd690d75f
commit 9847f3f638
13 changed files with 48 additions and 67 deletions

View File

@ -201,7 +201,7 @@ int run_server(struct server_state_st *state)
if (state->rsa_key != NULL) {
rc = ssh_bind_options_set(sshbind,
SSH_BIND_OPTIONS_RSAKEY,
SSH_BIND_OPTIONS_HOSTKEY,
state->rsa_key);
if (rc != 0) {
fprintf(stderr,
@ -213,7 +213,7 @@ int run_server(struct server_state_st *state)
if (state->ecdsa_key != NULL) {
rc = ssh_bind_options_set(sshbind,
SSH_BIND_OPTIONS_ECDSAKEY,
SSH_BIND_OPTIONS_HOSTKEY,
state->ecdsa_key);
if (rc != 0) {
fprintf(stderr,