mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
auth: Reformat ssh_userauth_agent
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
committed by
Sahana Prasad
parent
d604d7f872
commit
4f903812e6
@@ -1272,18 +1272,19 @@ int ssh_userauth_publickey_auto(ssh_session session,
|
|||||||
SSH_FATAL,
|
SSH_FATAL,
|
||||||
"Failed to read private key: %s",
|
"Failed to read private key: %s",
|
||||||
privkey_file);
|
privkey_file);
|
||||||
state->it=state->it->next;
|
state->it = state->it->next;
|
||||||
continue;
|
continue;
|
||||||
} else if (rc == SSH_EOF) {
|
} else if (rc == SSH_EOF) {
|
||||||
/* If the file doesn't exist, continue */
|
/* If the file doesn't exist, continue */
|
||||||
SSH_LOG(SSH_LOG_DEBUG,
|
SSH_LOG(SSH_LOG_DEBUG,
|
||||||
"Private key %s doesn't exist.",
|
"Private key %s doesn't exist.",
|
||||||
privkey_file);
|
privkey_file);
|
||||||
state->it=state->it->next;
|
state->it = state->it->next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = ssh_pki_export_privkey_to_pubkey(state->privkey, &state->pubkey);
|
rc = ssh_pki_export_privkey_to_pubkey(state->privkey,
|
||||||
|
&state->pubkey);
|
||||||
if (rc == SSH_ERROR) {
|
if (rc == SSH_ERROR) {
|
||||||
ssh_key_free(state->privkey);
|
ssh_key_free(state->privkey);
|
||||||
SAFE_FREE(session->auth.auto_state);
|
SAFE_FREE(session->auth.auto_state);
|
||||||
|
|||||||
Reference in New Issue
Block a user