@brief Set the session callback functions.
This functions sets the callback structure to use your own callback functions for auth, logging and status.
@code struct ssh_callbacks_struct cb = { .userdata = data, .auth_function = my_auth_function }; ssh_callbacks_init(&cb); ssh_set_callbacks(session, &cb); @endcode
@param session The session to set the callback structure.
@param cb The callback structure itself.
@return SSH_OK on success, SSH_ERROR on error.
See Implementation
@brief Set the session callback functions.
This functions sets the callback structure to use your own callback functions for auth, logging and status.
@code struct ssh_callbacks_struct cb = { .userdata = data, .auth_function = my_auth_function }; ssh_callbacks_init(&cb); ssh_set_callbacks(session, &cb); @endcode
@param session The session to set the callback structure.
@param cb The callback structure itself.
@return SSH_OK on success, SSH_ERROR on error.