diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-30 10:28:57 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-30 10:28:57 +0200 |
commit | 822c68eb8e06204170a2b0f9641f5886a45d397f (patch) | |
tree | 92b0872cc10f949108848309dc6aeb3ab0307ee9 /src/auth.c | |
parent | 60b92e458e1cf16f0029d9251e0f117ff27a02d0 (diff) | |
download | libssh-822c68eb8e06204170a2b0f9641f5886a45d397f.tar.gz libssh-822c68eb8e06204170a2b0f9641f5886a45d397f.tar.xz libssh-822c68eb8e06204170a2b0f9641f5886a45d397f.zip |
pki: Use consistent API for ssh_pki_export_privkey_to_pubkey().
Diffstat (limited to 'src/auth.c')
-rw-r--r-- | src/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |