libssh2_session_methods.3 (1018B)
1.TH libssh2_session_methods 3 "8 Nov 2021" "libssh2 1.11" "libssh2" 2.SH NAME 3libssh2_session_methods - return the currently active algorithms 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8const char * 9libssh2_session_methods(LIBSSH2_SESSION *session, int method_type); 10.fi 11.SH DESCRIPTION 12\fIsession\fP - Session instance as returned by 13.BR libssh2_session_init_ex(3) 14 15\fImethod_type\fP - one of the method type constants: LIBSSH2_METHOD_KEX, 16LIBSSH2_METHOD_HOSTKEY, LIBSSH2_METHOD_CRYPT_CS, LIBSSH2_METHOD_CRYPT_SC, 17LIBSSH2_METHOD_MAC_CS, LIBSSH2_METHOD_MAC_SC, LIBSSH2_METHOD_COMP_CS, 18LIBSSH2_METHOD_COMP_SC, LIBSSH2_METHOD_LANG_CS, LIBSSH2_METHOD_LANG_SC, 19LIBSSH2_METHOD_SIGN_ALGO. 20 21Returns the actual method negotiated for a particular transport parameter. 22.SH RETURN VALUE 23Negotiated method or NULL if the session has not yet been started. 24.SH ERRORS 25\fILIBSSH2_ERROR_INVAL\fP - The requested method type was invalid. 26 27\fILIBSSH2_ERROR_METHOD_NONE\fP - no method has been set 28.SH SEE ALSO 29.BR libssh2_session_init_ex(3)