aboutsummaryrefslogtreecommitdiff
path: root/src/bind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bind.c')
-rw-r--r--src/bind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bind.c b/src/bind.c
index 0dd1ebb5..7a2f049b 100644
--- a/src/bind.c
+++ b/src/bind.c
@@ -309,7 +309,7 @@ int ssh_bind_accept(ssh_bind sshbind, ssh_session session) {
}
if (sshbind->dsakey) {
- rc = ssh_key_import_private(session, sshbind->dsakey, NULL, &dsa);
+ rc = ssh_pki_import_privkey_file(session, sshbind->dsakey, NULL, &dsa);
if (rc == SSH_ERROR) {
return SSH_ERROR;
}
@@ -321,7 +321,7 @@ int ssh_bind_accept(ssh_bind sshbind, ssh_session session) {
}
if (sshbind->rsakey) {
- rc = ssh_key_import_private(session, sshbind->rsakey, NULL, &rsa);
+ rc = ssh_pki_import_privkey_file(session, sshbind->rsakey, NULL, &rsa);
if (rc == SSH_ERROR) {
return SSH_ERROR;
}