ssh_callbacks_struct

The structure to replace libssh functions with appropriate callbacks.

Members

Variables

auth_function
ssh_auth_callback auth_function;

This functions will be called if e.g. a keyphrase is needed.

channel_open_request_x11_function
ssh_channel_open_request_x11_callback channel_open_request_x11_function;

This function will be called when an incoming X11 request is received.

connect_status_function
void function(void* userdata, float status) connect_status_function;

This function gets called during connection time to indicate the percentage of connection steps completed.

global_request_function
ssh_global_request_callback global_request_function;

This function will be called each time a global request is received.

log_function
ssh_log_callback log_function;

This function will be called each time a loggable event happens.

size
size_t size;

DON'T SET THIS use ssh_callbacks_init() instead.

userdata
void* userdata;

User-provided data. User is free to set anything he wants here

Meta