@brief Set the session server callback functions.
This functions sets the callback structure to use your own callback functions for user authentication, new channels and requests.
@code struct ssh_server_callbacks_struct cb = { .userdata = data, .auth_password_function = my_auth_function }; ssh_callbacks_init(&cb); ssh_set_server_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 server callback functions.
This functions sets the callback structure to use your own callback functions for user authentication, new channels and requests.
@code struct ssh_server_callbacks_struct cb = { .userdata = data, .auth_password_function = my_auth_function }; ssh_callbacks_init(&cb); ssh_set_server_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.