ssh_channel_open_request_session_callback typedef

ssh_channel_open_request_session_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<Void>)>>

@brief Handles an SSH new channel open session request @param session current session handler @param userdata Userdata to be passed to the callback function. @returns a valid ssh_channel handle if the request is to be allowed @returns NULL if the request should not be allowed @warning The channel pointer returned by this callback must be closed by the application.

Implementation

typedef ssh_channel_open_request_session_callback
    = ffi.Pointer<ffi.NativeFunction<ffi.Int32 Function(ffi.Int32, ffi.Pointer<ffi.Void>)>>;