dce4d8c742
File : agent.c Notes : Libssh2 uses the SSH_AUTH_SOCK env variable to read the system agent location. However, when using a custom agent path you have to set this value using setenv which is not thread-safe. The new functions allow for a way to set a custom agent socket path in a thread safe manor.
23 строки
591 B
Groff
23 строки
591 B
Groff
.\"
|
|
.\" Copyright (c) 2019 by Will Cosgrove
|
|
.\"
|
|
.TH libssh2_agent_get_identity_path 3 "6 Mar 2019" "libssh2 1.9" "libssh2 manual"
|
|
.SH NAME
|
|
libssh2_agent_get_identity_path - gets the custom ssh-agent socket path
|
|
.SH SYNOPSIS
|
|
#include <libssh2.h>
|
|
|
|
const char *
|
|
libssh2_agent_get_identity_path(LIBSSH2_AGENT *agent);
|
|
.SH DESCRIPTION
|
|
Returns the custom agent identity socket path if set using libssh2_agent_set_identity_path()
|
|
|
|
.SH RETURN VALUE
|
|
Returns the socket path on disk.
|
|
.SH AVAILABILITY
|
|
Added in libssh2 1.9
|
|
.SH SEE ALSO
|
|
.BR libssh2_agent_init(3)
|
|
.BR libssh2_agent_set_identity_path(3)
|
|
|