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:
@ -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,
|
||||
|
Reference in New Issue
Block a user