summaryrefslogtreecommitdiffstats
path: root/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'libssh')
-rw-r--r--libssh/agent.c2
-rw-r--r--libssh/auth.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libssh/agent.c b/libssh/agent.c
index 7e95a614..2293e331 100644
--- a/libssh/agent.c
+++ b/libssh/agent.c
@@ -430,7 +430,7 @@ STRING *agent_sign_data(struct ssh_session *session,
return sig;
}
-int agent_running(SSH_SESSION *session) {
+int agent_is_running(SSH_SESSION *session) {
if (session == NULL || session->agent == NULL) {
return 0;
}
diff --git a/libssh/auth.c b/libssh/auth.c
index 3ec00caa..42e852e6 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");