libssh_binding library

Classes

DirectoryItem
fd_set
LibsshBinding
Bindings to libssh - The SSH library! libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel https://www.libssh.org/
LibsshCancelToken
You can cancel a request by using a cancel token. One token can be shared with different requests. when a token's cancel method invoked, all requests with this token will be cancelled.
LibsshWrapper
high-level wrapper on top of libssh binding - The SSH library! libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel https://www.libssh.org/
LibssOptions
PscpBinding
Bindings to pscp
sftp_attributes_struct
Bindings to sftp
sftp_client_message_struct
sftp_dir_struct
sftp_ext_struct
sftp_file_struct
sftp_message_struct
sftp_packet_struct
sftp_request_queue_struct
sftp_session_struct
sftp_status_message_struct
sftp_statvfs_struct
@brief SFTP statvfs structure.
ssh_agent_struct
ssh_auth_e
ssh_buffer_struct
ssh_callbacks_struct
The structure to replace libssh functions with appropriate callbacks.
ssh_channel_callbacks_struct
ssh_channel_requests_e
ssh_channel_struct
ssh_channel_type_e
ssh_connector_flags_e
ssh_connector_struct
ssh_counter_struct
ssh_error_types_e
ssh_event_struct
ssh_global_requests_e
ssh_kex_types_e
ssh_key_struct
ssh_keycmp_e
ssh_keytypes_e
ssh_known_hosts_e
ssh_knownhosts_entry
ssh_message_struct
ssh_options_e
@}
ssh_packet_callbacks_struct
ssh_pcap_file_struct
ssh_publickey_hash_type
ssh_publickey_state_e
ssh_requests_e
ssh_scp_request_types
ssh_scp_struct
ssh_server_callbacks_struct
This structure can be used to implement a libssh server, with appropriate callbacks.
ssh_server_known_e
ssh_session_struct
ssh_socket_callbacks_struct
These are the callbacks exported by the socket structure They are called by the socket module when a socket event appears
ssh_string_struct
ssh_threads_callbacks_struct
timeval

Constants

DEFFILEMODE → const int
LIBSFTP_VERSION → const int
MD5_DIGEST_LEN → const int
O_APPEND → const int
O_BINARY → const int
O_CREAT → const int
O_EXCL → const int
O_NOINHERIT → const int
O_OBTAIN_DIR → const int
O_RANDOM → const int
O_RAW → const int
O_RDONLY → const int
O_RDWR → const int
O_SEQUENTIAL → const int
O_SHORT_LIVED → const int
O_TEMPORARY → const int
O_TEXT → const int
O_TRUNC → const int
O_U16TEXT → const int
O_U8TEXT → const int
O_WRONLY → const int
O_WTEXT → const int
S_BLKSIZE → const int
S_IEXEC → const int
S_IFBLK → const int
S_IFCHR → const int
S_IFDIR → const int
S_IFIFO → const int
S_IFLNK → const int
S_IFMT → const int
S_IFREG → const int
S_IFSOCK → const int
S_IREAD → const int
S_IRGRP → const int
S_IROTH → const int
S_IRUSR → const int
S_IRWXG → const int
S_IRWXO → const int
S_IRWXU → const int
read, write, execute/search by owner 0000700 RWX mask for owner */
S_ISGID → const int
S_ISTXT → const int
S_ISVTX → const int
S_IWGRP → const int
S_IWOTH → const int
S_IWRITE → const int
S_IWUSR → const int
S_IXGRP → const int
S_IXOTH → const int
S_IXUSR → const int
SFTP_CLOSE → const int
SFTP_EXTENDED → const int
SFTP_FSETSTAT → const int
SFTP_FSTAT → const int
SFTP_LSTAT → const int
SFTP_MKDIR → const int
SFTP_OPEN → const int
SFTP_OPENDIR → const int
SFTP_READ → const int
SFTP_READDIR → const int
SFTP_REALPATH → const int
SFTP_REMOVE → const int
SFTP_RENAME → const int
SFTP_RMDIR → const int
SFTP_SETSTAT → const int
SFTP_STAT → const int
SFTP_WRITE → const int
SSH_ADDRSTRLEN → const int
SSH_AGAIN → const int
SSH_AUTH_METHOD_GSSAPI_MIC → const int
SSH_AUTH_METHOD_HOSTBASED → const int
SSH_AUTH_METHOD_INTERACTIVE → const int
SSH_AUTH_METHOD_NONE → const int
SSH_AUTH_METHOD_PASSWORD → const int
SSH_AUTH_METHOD_PUBLICKEY → const int
SSH_AUTH_METHOD_UNKNOWN → const int
SSH_CLOSED → const int
SSH_CLOSED_ERROR → const int
SSH_COMP → const int
SSH_CRYPT → const int
SSH_EOF → const int
SSH_ERROR → const int
SSH_FILEXFER_ATTR_ACCESSTIME → const int
SSH_FILEXFER_ATTR_ACL → const int
SSH_FILEXFER_ATTR_ACMODTIME → const int
SSH_FILEXFER_ATTR_CREATETIME → const int
SSH_FILEXFER_ATTR_EXTENDED → const int
SSH_FILEXFER_ATTR_MODIFYTIME → const int
SSH_FILEXFER_ATTR_OWNERGROUP → const int
SSH_FILEXFER_ATTR_PERMISSIONS → const int
SSH_FILEXFER_ATTR_SIZE → const int
SSH_FILEXFER_ATTR_SUBSECOND_TIMES → const int
SSH_FILEXFER_ATTR_UIDGID → const int
SSH_FILEXFER_TYPE_DIRECTORY → const int
i s directory
SSH_FILEXFER_TYPE_REGULAR → const int
is file
SSH_FILEXFER_TYPE_SPECIAL → const int
is symbolic link
SSH_FILEXFER_TYPE_UNKNOWN → const int
SSH_FX_BAD_MESSAGE → const int
SSH_FX_CONNECTION_LOST → const int
SSH_FX_EOF → const int
SSH_FX_FAILURE → const int
SSH_FX_FILE_ALREADY_EXISTS → const int
SSH_FX_INVALID_HANDLE → const int
SSH_FX_NO_CONNECTION → const int
SSH_FX_NO_MEDIA → const int
SSH_FX_NO_SUCH_FILE → const int
SSH_FX_NO_SUCH_PATH → const int
SSH_FX_OK → const int
SSH_FX_OP_UNSUPPORTED → const int
SSH_FX_PERMISSION_DENIED → const int
SSH_FX_WRITE_PROTECT → const int
SSH_FXE_STATVFS_ST_NOSUID → const int
no setuid
SSH_FXE_STATVFS_ST_RDONLY → const int
read-only
SSH_FXF_APPEND → const int
SSH_FXF_CREAT → const int
SSH_FXF_EXCL → const int
SSH_FXF_READ → const int
SSH_FXF_RENAME_ATOMIC → const int
SSH_FXF_RENAME_NATIVE → const int
SSH_FXF_RENAME_OVERWRITE → const int
SSH_FXF_TEXT → const int
SSH_FXF_TRUNC → const int
SSH_FXF_WRITE → const int
SSH_FXP_ATTRS → const int
SSH_FXP_CLOSE → const int
SSH_FXP_DATA → const int
SSH_FXP_EXTENDED → const int
SSH_FXP_EXTENDED_REPLY → const int
SSH_FXP_FSETSTAT → const int
SSH_FXP_FSTAT → const int
SSH_FXP_HANDLE → const int
SSH_FXP_INIT → const int
SSH_FXP_LSTAT → const int
SSH_FXP_MKDIR → const int
SSH_FXP_NAME → const int
SSH_FXP_OPEN → const int
SSH_FXP_OPENDIR → const int
SSH_FXP_READ → const int
SSH_FXP_READDIR → const int
SSH_FXP_REALPATH → const int
SSH_FXP_REMOVE → const int
SSH_FXP_RENAME → const int
SSH_FXP_RMDIR → const int
SSH_FXP_SETSTAT → const int
SSH_FXP_STAT → const int
SSH_FXP_STATUS → const int
SSH_FXP_VERSION → const int
SSH_FXP_WRITE → const int
SSH_INVALID_SOCKET → const int
SSH_LANG → const int
SSH_LOG_DEBUG → const int
SSH_LOG_FUNCTIONS → const int
SSH_LOG_INFO → const int
SSH_LOG_NOLOG → const int
SSH_LOG_NONE → const int
SSH_LOG_PACKET → const int
SSH_LOG_PROTOCOL → const int
SSH_LOG_RARE → const int
SSH_LOG_TRACE → const int
SSH_LOG_WARN → const int
SSH_LOG_WARNING → const int
SSH_MAC → const int
SSH_OK → const int
SSH_PACKET_NOT_USED → const int
SSH_PACKET_USED → const int
SSH_READ_PENDING → const int
SSH_S_IFBLK → const int
Teste para um arquivo especial de bloco
SSH_S_IFCHR → const int
Teste para um arquivo especial de caracteres
SSH_S_IFDIR → const int
Teste para um diretório
SSH_S_IFIFO → const int
Teste para um tubo ou arquivo especial FIFO
SSH_S_IFLNK → const int
Teste para um link simbólico
SSH_S_IFMT → const int
SSH_S_IFREG → const int
Teste para um arquivo normal
SSH_S_IFSOCK → const int
Teste para um soquete
SSH_SCP_READ → const int
SSH_SCP_RECURSIVE → const int
SSH_SCP_WRITE → const int
SSH_SOCKET_CONNECTED_ERROR → const int
SSH_SOCKET_CONNECTED_OK → const int
SSH_SOCKET_CONNECTED_TIMEOUT → const int
SSH_SOCKET_EXCEPTION_EOF → const int
SSH_SOCKET_EXCEPTION_ERROR → const int
SSH_SOCKET_FLOW_WRITEWILLBLOCK → const int
SSH_SOCKET_FLOW_WRITEWONTBLOCK → const int
SSH_WRITE_PENDING → const int

Functions

concatUint8List(List<Uint8List> lists) Uint8List
combine/concatenate two Uint8List
intToNativeVoid(int number) Pointer<Void>
intToPermissionString(int intPermission, {String type = 'file', bool withType = true}) String
input Ex: 511 out: 777 => rwxrwxrwx type file | dir | link
isInvalidFilename(String filename) bool
isUft8MalformedStringPointer(Pointer<Int8> pointer) bool
nativeInt8ToCodeUnits(Pointer<Int8> pointer) Uint8List
nativeInt8ToString(Pointer<Int8> pointer, {dynamic allowMalformed = true}) String
nativeInt8ToUint8List(Pointer<Int8> pointer) Uint8List
permToCct(String $permissions) → dynamic
sanitizeFilename(String input, [dynamic replacement = '_']) String
Sanitize-filename removes the following: Control characters (0x00–0x1f and 0x80–0x9f) Reserved characters (/, ?, <, >, , :, *, |, and ") Unix reserved filenames (. and ..) Trailing periods and spaces (for Windows) Windows reserved filenames (CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9)
stringPermissionToOctal(String value, {bool withType = false}) String
ex: stringPermissionToOctal('-rwxrwxrwx') => 777 value input '-rwxrwxrwx' => 777
stringToNativeChar(String str, {Allocator allocator = calloc}) Pointer<Utf8>
stringToNativeInt8(String str, {Allocator allocator = calloc}) Pointer<Int8>
stringToNativeVoid(String str, {Allocator allocator = calloc}) Pointer<Void>
stringToUint8ListTo(String str) Uint8List
uint8ListToPointerInt8(Uint8List units, {Allocator allocator = calloc}) Pointer<Int8>
uint8ListToString(Uint8List list, {dynamic allowMalformed = true}) String
writeAndFlush(IOSink sink, dynamic object) Future

Typedefs

gid_t = Uint32
LONG_PTR = Int64
mode_t = Int32
sftp_attributes = Pointer<sftp_attributes_struct>
sftp_client_message = Pointer<sftp_client_message_struct>
sftp_dir = Pointer<sftp_dir_struct>
sftp_ext = Pointer<sftp_ext_struct>
sftp_file = Pointer<sftp_file_struct>
sftp_message = Pointer<sftp_message_struct>
sftp_packet = Pointer<sftp_packet_struct>
sftp_request_queue = Pointer<sftp_request_queue_struct>
sftp_request_queue1 = Pointer<sftp_request_queue_struct>
sftp_session = Pointer<sftp_session_struct>
sftp_session1 = Pointer<sftp_session_struct>
sftp_statvfs_t = Pointer<sftp_statvfs_struct>
size_t = Uint64
SOCKET = UINT_PTR
socket_t = SOCKET
ssh_auth_callback = Pointer<NativeFunction<Int32 Function(Pointer<Int8>, Pointer<Int8>, size_t, Int32, Int32, Pointer<Void>)>>
@brief SSH authentication callback for password and publickey auth.
ssh_auth_gssapi_mic_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<Int8>, Pointer<Int8>, Pointer<Void>)>>
@brief SSH authentication callback. Tries to authenticates user with the "gssapi-with-mic" method @param session Current session handler @param user Username of the user (can be spoofed) @param principal Authenticated principal of the user, including realm. @param userdata Userdata to be passed to the callback function. @returns SSH_AUTH_SUCCESS Authentication is accepted. @returns SSH_AUTH_PARTIAL Partial authentication, more authentication means are needed. @returns SSH_AUTH_DENIED Authentication failed. @warning Implementations should verify that parameter user matches in some way the principal. user and principal can be different. Only the latter is guaranteed to be safe.
ssh_auth_none_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<Int8>, Pointer<Void>)>>
@brief SSH authentication callback. Tries to authenticates user with the "none" method which is anonymous or passwordless. @param session Current session handler @param user User that wants to authenticate @param userdata Userdata to be passed to the callback function. @returns SSH_AUTH_SUCCESS Authentication is accepted. @returns SSH_AUTH_PARTIAL Partial authentication, more authentication means are needed. @returns SSH_AUTH_DENIED Authentication failed.
ssh_auth_password_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<Int8>, Pointer<Int8>, Pointer<Void>)>>
@brief SSH authentication callback. @param session Current session handler @param user User that wants to authenticate @param password Password used for authentication @param userdata Userdata to be passed to the callback function. @returns SSH_AUTH_SUCCESS Authentication is accepted. @returns SSH_AUTH_PARTIAL Partial authentication, more authentication means are needed. @returns SSH_AUTH_DENIED Authentication failed.
ssh_auth_pubkey_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<Int8>, Pointer<ssh_key_struct>, Int8, Pointer<Void>)>>
@brief SSH authentication callback. @param session Current session handler @param user User that wants to authenticate @param pubkey public key used for authentication @param signature_state SSH_PUBLICKEY_STATE_NONE if the key is not signed (simple public key probe), SSH_PUBLICKEY_STATE_VALID if the signature is valid. Others values should be replied with a SSH_AUTH_DENIED. @param userdata Userdata to be passed to the callback function. @returns SSH_AUTH_SUCCESS Authentication is accepted. @returns SSH_AUTH_PARTIAL Partial authentication, more authentication means are needed. @returns SSH_AUTH_DENIED Authentication failed.
ssh_buffer = Pointer<ssh_buffer_struct>
ssh_callback_data = Pointer<NativeFunction<Int32 Function(Pointer<Void>, size_t, Pointer<Void>)>>
@internal @brief callback for data received messages. @param data data retrieved from the socket or stream @param len number of bytes available from this stream @param user user-supplied pointer sent along with all callback messages @returns number of bytes processed by the callee. The remaining bytes will be sent in the next callback message, when more data is available.
ssh_callback_int = Pointer<NativeFunction<Void Function(Int32, Pointer<Void>)>>
@internal @brief callback to process simple codes @param code value to transmit @param user Userdata to pass in callback
ssh_callback_int_int = Pointer<NativeFunction<Void Function(Int32, Int32, Pointer<Void>)>>
ssh_callbacks = Pointer<ssh_callbacks_struct>
ssh_channel = Pointer<ssh_channel_struct>
ssh_channel_auth_agent_req_callback = Pointer<NativeFunction<Void Function(Int32, Pointer<ssh_channel>, Pointer<Void>)>>
@brief SSH auth-agent-request from the client. This request is sent by a client when agent forwarding is available. Server is free to ignore this callback, no answer is expected. @param channel the channel @param userdata Userdata to be passed to the callback function.
ssh_channel_callbacks = Pointer<ssh_channel_callbacks_struct>
ssh_channel_close_callback = Pointer<NativeFunction<Void Function(Int32, Pointer<ssh_channel>, Pointer<Void>)>>
@brief SSH channel close callback. Called when a channel is closed by remote peer @param session Current session handler @param channel the actual channel @param userdata Userdata to be passed to the callback function.
ssh_channel_data_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_channel>, Pointer<Void>, Int32, Int32, Pointer<Void>)>>
@brief SSH channel data callback. Called when data is available on a channel @param session Current session handler @param channel the actual channel @param data the data that has been read on the channel @param len the length of the data @param is_stderr is 0 for stdout or 1 for stderr @param userdata Userdata to be passed to the callback function. @returns number of bytes processed by the callee. The remaining bytes will be sent in the next callback message, when more data is available.
ssh_channel_env_request_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_channel>, Pointer<Int8>, Pointer<Int8>, Pointer<Void>)>>
@brief SSH channel environment request from a client. @param channel the channel @param env_name name of the environment value to be set @param env_value value of the environment value to be set @param userdata Userdata to be passed to the callback function. @returns 0 if the env request is accepted @returns 1 if the request is denied @warning some environment variables can be dangerous if changed (e.g. LD_PRELOAD) and should not be fulfilled.
ssh_channel_eof_callback = Pointer<NativeFunction<Void Function(Int32, Pointer<ssh_channel>, Pointer<Void>)>>
@brief SSH channel eof callback. Called when a channel receives EOF @param session Current session handler @param channel the actual channel @param userdata Userdata to be passed to the callback function.
ssh_channel_exec_request_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_channel>, Pointer<Int8>, Pointer<Void>)>>
@brief SSH channel Exec request from a client. @param channel the channel @param command the shell command to be executed @param userdata Userdata to be passed to the callback function. @returns 0 if the exec request is accepted @returns 1 if the request is denied
ssh_channel_exit_signal_callback = Pointer<NativeFunction<Void Function(Int32, Pointer<ssh_channel>, Pointer<Int8>, Int32, Pointer<Int8>, Pointer<Int8>, Pointer<Void>)>>
@brief SSH channel exit signal callback. Called when a channel has received an exit signal @param session Current session handler @param channel the actual channel @param signal the signal name (without the SIG prefix) @param core a boolean telling wether a core has been dumped or not @param errmsg the description of the exception @param lang the language of the description (format: RFC 3066) @param userdata Userdata to be passed to the callback function.
ssh_channel_exit_status_callback = Pointer<NativeFunction<Void Function(Int32, Pointer<ssh_channel>, Int32, Pointer<Void>)>>
@brief SSH channel exit status callback. Called when a channel has received an exit status @param session Current session handler @param channel the actual channel @param userdata Userdata to be passed to the callback function.
ssh_channel_open_request_auth_agent_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<Void>)>>
@brief Handles an SSH new channel open "auth-agent" request. This happens when the server sends back an "auth-agent" connection attempt. This is a client-side API @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.
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.
ssh_channel_pty_request_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_channel>, Pointer<Int8>, Int32, Int32, Int32, Int32, Pointer<Void>)>>
@brief SSH channel PTY request from a client. @param channel the channel @param term The type of terminal emulation @param width width of the terminal, in characters @param height height of the terminal, in characters @param pxwidth width of the terminal, in pixels @param pxheight height of the terminal, in pixels @param userdata Userdata to be passed to the callback function. @returns 0 if the pty request is accepted @returns -1 if the request is denied
ssh_channel_pty_window_change_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_channel>, Int32, Int32, Int32, Int32, Pointer<Void>)>>
@brief SSH channel PTY windows change (terminal size) from a client. @param channel the channel @param width width of the terminal, in characters @param height height of the terminal, in characters @param pxwidth width of the terminal, in pixels @param pxheight height of the terminal, in pixels @param userdata Userdata to be passed to the callback function. @returns 0 if the pty request is accepted @returns -1 if the request is denied
ssh_channel_shell_request_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_channel>, Pointer<Void>)>>
@brief SSH channel Shell request from a client. @param channel the channel @param userdata Userdata to be passed to the callback function. @returns 0 if the shell request is accepted @returns 1 if the request is denied
ssh_channel_signal_callback = Pointer<NativeFunction<Void Function(Int32, Pointer<ssh_channel>, Pointer<Int8>, Pointer<Void>)>>
@brief SSH channel signal callback. Called when a channel has received a signal @param session Current session handler @param channel the actual channel @param signal the signal name (without the SIG prefix) @param userdata Userdata to be passed to the callback function.
ssh_channel_subsystem_request_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_channel>, Pointer<Int8>, Pointer<Void>)>>
@brief SSH channel subsystem request from a client. @param channel the channel @param subsystem the subsystem required @param userdata Userdata to be passed to the callback function. @returns 0 if the subsystem request is accepted @returns 1 if the request is denied
ssh_channel_write_wontblock_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_channel>, size_t, Pointer<Void>)>>
@brief SSH channel write will not block (flow control).
ssh_channel_x11_req_callback = Pointer<NativeFunction<Void Function(Int32, Pointer<ssh_channel>, Int32, Pointer<Int8>, Pointer<Int8>, Int32, Pointer<Void>)>>
@brief SSH X11 request from the client. This request is sent by a client when X11 forwarding is requested(and available). Server is free to ignore this callback, no answer is expected. @param channel the channel @param userdata Userdata to be passed to the callback function.
ssh_connector = Pointer<ssh_connector_struct>
ssh_counter = Pointer<ssh_counter_struct>
ssh_event = Pointer<ssh_event_struct>
ssh_event_callback = Pointer<NativeFunction<Int32 Function(socket_t, Int32, Pointer<Void>)>>
ssh_global_request_callback = Pointer<NativeFunction<Void Function(Int32, Int32, Pointer<Void>)>>
@brief SSH global request callback. All global request will go through this callback. @param session Current session handler @param message the actual message @param userdata Userdata to be passed to the callback function.
ssh_gssapi_accept_sec_ctx_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_string>, Pointer<ssh_string>, Pointer<Void>)>>
ssh_gssapi_creds = Pointer<Void>
ssh_gssapi_verify_mic_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<ssh_string>, Pointer<Void>, size_t, Pointer<Void>)>>
ssh_key = Pointer<ssh_key_struct>
ssh_log_callback = Pointer<NativeFunction<Void Function(Int32, Int32, Pointer<Int8>, Pointer<Void>)>>
@brief SSH log callback. All logging messages will go through this callback @param session Current session handler @param priority Priority of the log, the smaller being the more important @param message the actual message @param userdata Userdata to be passed to the callback function.
ssh_logging_callback = Pointer<NativeFunction<Void Function(Int32, Pointer<Int8>, Pointer<Int8>, Pointer<Void>)>>
@brief SSH log callback.
ssh_message = Pointer<ssh_message_struct>
ssh_packet_callback = Pointer<NativeFunction<Int32 Function(Int32, Int32, Int32, Pointer<Void>)>>
@brief Prototype for a packet callback, to be called when a new packet arrives @param session The current session of the packet @param type packet type (see ssh2.h) @param packet buffer containing the packet, excluding size, type and padding fields @param user user argument to the callback and are called each time a packet shows up @returns SSH_PACKET_USED Packet was parsed and used @returns SSH_PACKET_NOT_USED Packet was not used or understood, processing must continue
ssh_pcap_file = Pointer<ssh_pcap_file_struct>
ssh_scp = Pointer<ssh_scp_struct>
ssh_server_callbacks = Pointer<ssh_server_callbacks_struct>
ssh_service_request_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<Int8>, Pointer<Void>)>>
@brief Handles an SSH service request @param session current session handler @param service name of the service (e.g. "ssh-userauth") requested @param userdata Userdata to be passed to the callback function. @returns 0 if the request is to be allowed @returns -1 if the request should not be allowed
ssh_session = Pointer<ssh_session_struct>
ssh_string = Pointer<ssh_string_struct>
ssh_thread_callback = Pointer<NativeFunction<Int32 Function(Pointer<Pointer<Void>>)>>
@group libssh_threads @{
ssh_thread_id_callback = Pointer<NativeFunction<Uint64 Function()>>
ssize_t = SSIZE_T
SSIZE_T = LONG_PTR
stat_callback = Void Function(Pointer<Utf8>)
u_int = Uint32
uid_t = Uint32
UINT_PTR = Uint64