1libssh2_session_methods(3)          libssh2         libssh2_session_methods(3)
2
3
4

NAME

6       libssh2_session_methods - return the currently active algorithms
7

SYNOPSIS

9       #include <libssh2.h>
10
11       const char *
12       libssh2_session_methods(LIBSSH2_SESSION *session, int method_type);
13

DESCRIPTION

15       session - Session instance as returned by libssh2_session_init_ex(3)
16
17       method_type  -  one  of  the method type constants: LIBSSH2_METHOD_KEX,
18       LIBSSH2_METHOD_HOSTKEY,          LIBSSH2_METHOD_CRYPT_CS,          LIB‐
19       SSH2_METHOD_CRYPT_SC,   LIBSSH2_METHOD_MAC_CS,   LIBSSH2_METHOD_MAC_SC,
20       LIBSSH2_METHOD_COMP_CS, LIBSSH2_METHOD_COMP_SC, LIBSSH2_METHOD_LANG_CS,
21       LIBSSH2_METHOD_LANG_SC, LIBSSH2_METHOD_SIGN_ALGO.
22
23       Returns the actual method negotiated for a particular transport parame‐
24       ter.
25

RETURN VALUE

27       Negotiated method or NULL if the session has not yet been started.
28

ERRORS

30       LIBSSH2_ERROR_INVAL - The requested method type was invalid.
31
32       LIBSSH2_ERROR_METHOD_NONE - no method has been set
33

SEE ALSO

35       libssh2_session_init_ex(3)
36
37
38
39libssh2 1.11                      8 Nov 2021        libssh2_session_methods(3)
Impressum