The SSH error functions.
[The libssh API]

Functions for error handling. More...

Functions

const char * ssh_get_error (void *error)
 Retrieve the error text message from the last error.
int ssh_get_error_code (void *error)
 Retrieve the error code from the last error.

Detailed Description

Functions for error handling.


Function Documentation

const char* ssh_get_error ( void *  error  ) 

Retrieve the error text message from the last error.

Parameters:
error The SSH session pointer.
Returns:
A static string describing the error.

Referenced by ssh_scp_leave_directory(), ssh_scp_push_directory(), ssh_scp_push_file(), and ssh_try_publickey_from_file().

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 occurred
SSH_REQUEST_DENIED The last request was denied but situation is recoverable
SSH_FATAL A fatal error occurred. This could be an unexpected disconnection
Other error codes are internal but can be considered same than SSH_FATAL.


Generated on Wed Dec 4 07:23:29 2013 for libssh by  doxygen 1.5.6