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

pki: Use consistent API for ssh_pki_export_privkey_to_pubkey().

This commit is contained in:
Andreas Schneider
2011-08-30 10:28:57 +02:00
parent 60b92e458e
commit 822c68eb8e
6 changed files with 39 additions and 25 deletions

View File

@@ -1118,8 +1118,8 @@ int ssh_userauth_publickey_auto(ssh_session session,
continue;
}
pubkey = ssh_pki_publickey_from_privatekey(privkey);
if (pubkey == NULL) {
rc = ssh_pki_export_privkey_to_pubkey(privkey, &pubkey);
if (rc == SSH_ERROR) {
ssh_key_free(privkey);
return SSH_AUTH_ERROR;
}