libssh2

Форк
0
/
libssh2_hostkey_hash.3 
29 строк · 1.1 Кб
1
.\" Copyright (C) The libssh2 project and its contributors.
2
.\" SPDX-License-Identifier: BSD-3-Clause
3
.TH libssh2_hostkey_hash 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
4
.SH NAME
5
libssh2_hostkey_hash - return a hash of the remote host's key
6
.SH SYNOPSIS
7
.nf
8
#include <libssh2.h>
9

10
const char *
11
libssh2_hostkey_hash(LIBSSH2_SESSION *session, int hash_type);
12
.fi
13
.SH DESCRIPTION
14
\fIsession\fP - Session instance as returned by
15
.BR libssh2_session_init_ex(3)
16

17
\fIhash_type\fP - One of: \fBLIBSSH2_HOSTKEY_HASH_MD5\fP,
18
\fBLIBSSH2_HOSTKEY_HASH_SHA1\fP or \fBLIBSSH2_HOSTKEY_HASH_SHA256\fP.
19

20
Returns the computed digest of the remote system's hostkey. The length of
21
the returned string is hash_type specific (e.g. 16 bytes for MD5,
22
20 bytes for SHA1, 32 bytes for SHA256).
23
.SH RETURN VALUE
24
Computed hostkey hash value, or NULL if the information is not available
25
(either the session has not yet been started up, or the requested hash
26
algorithm was not available). The hash consists of raw binary bytes, not hex
27
digits, so it is not directly printable.
28
.SH SEE ALSO
29
.BR libssh2_session_init_ex(3)
30

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

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

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

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