NAME
Ssh_error - error handling
Functions
char * ssh_get_error (void *error)
retrieve an error text message int ssh_get_error_code (void *error)
retrieve the error code from the last error
Detailed Description
error handling
Function Documentation
char* ssh_get_error (void * error)
retrieve an error text message
Parameters:
error the ssh session pointer
Returns:
a static string describing the error
int ssh_get_error_code (void * error)
retrieve the error code from the last error
Parameters:
error the ssh session pointer
Returns:
SSH_NO_ERROR no error occured
SSH_REQUEST_DENIED The last request was denied but situation is recoverable
SSH_FATAL A fatal error occured. this could be an unexpected disconnection
Other error codes are internal but can be considered same than SSH_FATAL