aboutsummaryrefslogtreecommitdiff
path: root/src/auth.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-30 10:16:53 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-30 10:16:53 +0200
commit60b92e458e1cf16f0029d9251e0f117ff27a02d0 (patch)
tree1f099e92f170a4aa3d921efc7adbd5a22f75627a /src/auth.c
parente2365775030fa3c696e1f75997d5bc856a19e3ed (diff)
downloadlibssh-60b92e458e1cf16f0029d9251e0f117ff27a02d0.tar.gz
libssh-60b92e458e1cf16f0029d9251e0f117ff27a02d0.tar.xz
libssh-60b92e458e1cf16f0029d9251e0f117ff27a02d0.zip
pki: Use consistent API for ssh_pki_export_pubkey_blob().
Diffstat (limited to 'src/auth.c')
-rw-r--r--src/auth.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/auth.c b/src/auth.c
index 853385d7..3792854a 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -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;
}