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_pubkey_blob().

This commit is contained in:
Andreas Schneider
2011-08-30 10:16:53 +02:00
parent e236577503
commit 60b92e458e
7 changed files with 45 additions and 23 deletions

View File

@@ -601,8 +601,8 @@ int ssh_userauth_try_publickey(ssh_session session,
}
/* public key */
str = ssh_pki_export_pubkey_blob(pubkey);
if (str == NULL) {
rc = ssh_pki_export_pubkey_blob(pubkey, &str);
if (rc < 0) {
goto fail;
}
@@ -763,8 +763,8 @@ int ssh_userauth_publickey(ssh_session session,
}
/* public key */
str = ssh_pki_export_pubkey_blob(privkey);
if (str == NULL) {
rc = ssh_pki_export_pubkey_blob(privkey, &str);
if (rc < 0) {
goto fail;
}
@@ -899,8 +899,8 @@ static int ssh_userauth_agent_publickey(ssh_session session,
}
/* public key */
str = ssh_pki_export_pubkey_blob(pubkey);
if (str == NULL) {
rc = ssh_pki_export_pubkey_blob(pubkey, &str);
if (rc < 0) {
goto fail;
}