libssh2

Форк
0
/
libssh2_agent_get_identity.3 
36 строк · 1.2 Кб
1
.\" Copyright (C) Daiki Ueno
2
.\" SPDX-License-Identifier: BSD-3-Clause
3
.TH libssh2_agent_get_identity 3 "23 Dec 2009" "libssh2" "libssh2"
4
.SH NAME
5
libssh2_agent_get_identity - get a public key off the collection of public keys managed by ssh-agent
6
.SH SYNOPSIS
7
.nf
8
#include <libssh2.h>
9

10
int
11
libssh2_agent_get_identity(LIBSSH2_AGENT *agent,
12
                           struct libssh2_agent_publickey **store,
13
                           struct libssh2_agent_publickey *prev);
14
.fi
15
.SH DESCRIPTION
16
\fIlibssh2_agent_get_identity(3)\fP allows an application to iterate
17
over all public keys in the collection managed by ssh-agent.
18

19
\fIstore\fP should point to a pointer that gets filled in to point to the
20
public key data.
21

22
\fIprev\fP is a pointer to a previous 'struct libssh2_agent_publickey'
23
as returned by a previous invoke of this function, or NULL to get the
24
first entry in the internal collection.
25
.SH RETURN VALUE
26
Returns 0 if everything is fine and information about a host was stored in
27
the \fIstore\fP struct.
28

29
Returns 1 if it reached the end of public keys.
30

31
Returns negative values for error
32
.SH AVAILABILITY
33
Added in libssh2 1.2
34
.SH SEE ALSO
35
.BR libssh2_agent_list_identities(3)
36
.BR libssh2_agent_userauth(3)
37

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.