ssh_error(3)
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 occuredSSH_REQUEST_DENIED The last request was denied but situation isrecoverableSSH_FATAL A fatal error occured. this could be an unexpecteddisconnectionOther error codes are internal but can be considered same thanSSH_FATAL