summaryrefslogtreecommitdiffstats
path: root/libssh/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/auth.c')
-rw-r--r--libssh/auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/auth.c b/libssh/auth.c
index 3ec00ca..42e852e 100644
--- a/libssh/auth.c
+++ b/libssh/auth.c
@@ -359,7 +359,7 @@ int ssh_userauth_agent_pubkey(SSH_SESSION *session, const char *username,
int err = SSH_AUTH_ERROR;
enter_function();
- if (! agent_running(session)) {
+ if (! agent_is_running(session)) {
return err;
}
@@ -516,7 +516,7 @@ int ssh_userauth_autopubkey(SSH_SESSION *session, const char *passphrase) {
/* try ssh-agent keys first */
#ifndef _WIN32
- if (agent_running(session)) {
+ if (agent_is_running(session)) {
ssh_log(session, SSH_LOG_RARE,
"Trying to authenticate with SSH agent keys");