1libssh2_session_methods(3) libssh2 manual libssh2_session_methods(3)
2
3
4
6 libssh2_session_methods - return the currently active algorithms
7
9 #include <libssh2.h>
10
11 const char * libssh2_session_methods(LIBSSH2_SESSION *session, int
12 method_type);
13
14
16 session - Session instance as returned by libssh2_session_init_ex(3)
17
18 method_type - one of the method type constants: LIBSSH2_METHOD_KEX,
19 LIBSSH2_METHOD_HOSTKEY, LIBSSH2_METHOD_CRYPT_CS, LIB‐
20 SSH2_METHOD_CRYPT_SC, LIBSSH2_METHOD_MAC_CS, LIBSSH2_METHOD_MAC_SC,
21 LIBSSH2_METHOD_COMP_CS, LIBSSH2_METHOD_COMP_SC, LIBSSH2_METHOD_LANG_CS,
22 LIBSSH2_METHOD_LANG_SC.
23
24 Returns the actual method negotiated for a particular transport parame‐
25 ter.
26
28 Negotiated method or NULL if the session has not yet been started.
29
31 LIBSSH2_ERROR_INVAL - The requested method type was invalid.
32
33 LIBSSH2_ERROR_METHOD_NONE - no method has been set
34
36 libssh2_session_init_ex(3)
37
38
39
40libssh2 0.15 1 Jun 2007 libssh2_session_methods(3)