libssh2

Форк
0
/
libssh2_session_method_pref.3 
41 строка · 1.5 Кб
1
.\" Copyright (C) The libssh2 project and its contributors.
2
.\" SPDX-License-Identifier: BSD-3-Clause
3
.TH libssh2_session_method_pref 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
4
.SH NAME
5
libssh2_session_method_pref - set preferred key exchange method
6
.SH SYNOPSIS
7
.nf
8
#include <libssh2.h>
9

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

18
\fImethod_type\fP - One of the Method Type constants.
19

20
\fIprefs\fP - Coma delimited list of preferred methods to use with
21
the most preferred listed first and the least preferred listed last.
22
If a method is listed which is not supported by libssh2 it will be
23
ignored and not sent to the remote host during protocol negotiation.
24

25
Set preferred methods to be negotiated. These
26
preferences must be set prior to calling
27
.BR libssh2_session_handshake(3)
28
as they are used during the protocol initiation phase.
29
.SH RETURN VALUE
30
Return 0 on success or negative on failure. It returns
31
LIBSSH2_ERROR_EAGAIN when it would otherwise block. While
32
LIBSSH2_ERROR_EAGAIN is a negative number, it is not really a failure per se.
33
.SH ERRORS
34
\fILIBSSH2_ERROR_INVAL\fP - The requested method type was invalid.
35

36
\fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
37

38
\fILIBSSH2_ERROR_METHOD_NOT_SUPPORTED\fP - The requested method is not supported.
39
.SH SEE ALSO
40
.BR libssh2_session_init_ex(3)
41
.BR libssh2_session_handshake(3)
42

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

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

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

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