From 822c68eb8e06204170a2b0f9641f5886a45d397f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 30 Aug 2011 10:28:57 +0200 Subject: pki: Use consistent API for ssh_pki_export_privkey_to_pubkey(). --- src/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/auth.c') diff --git a/src/auth.c b/src/auth.c index 3792854..f5ce749 100644 --- a/src/auth.c +++ b/src/auth.c @@ -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; } -- cgit