mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
pki: Use a consistent name scheme.
Rename ssh_key_import_private to ssh_pki_import_privkey_file.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user