Rename function to agent_is_running.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@236 7dcaeef0-15fb-0310-b436-a5af3365683c
Этот коммит содержится в:
родитель
7ceaf5c43a
Коммит
5ea8088938
@ -448,7 +448,7 @@ void agent_free(struct agent_struct *agent);
|
||||
*
|
||||
* @return 1 if it is running, 0 if not.
|
||||
*/
|
||||
int agent_running(struct ssh_session *session);
|
||||
int agent_is_running(struct ssh_session *session);
|
||||
|
||||
int agent_get_ident_count(struct ssh_session *session);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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");
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user