deps/libssh-0.6.3/src/error.c
int ssh_get_error_code(void *error) {
  struct error_struct *err = error;

  return err->error_code;
}
/**
 * @brief Retrieve the error code from the last error.
 *
 * @param  error        An ssh_session or ssh_bind.
 *
 * \return SSH_NO_ERROR       No error occurred\n
 *         SSH_REQUEST_DENIED The last request was denied but situation is
 *                            recoverable\n
 *         SSH_FATAL          A fatal error occurred. This could be an unexpected
 *                            disconnection\n
 *
 *         Other error codes are internal but can be considered same than
 *         SSH_FATAL.
 */
@brief Retrieve the error code from the last error.

\return SSH_NO_ERROR       No error occurred\n
SSH_REQUEST_DENIED The last request was denied but situation is
recoverable\n
SSH_FATAL          A fatal error occurred. This could be an unexpected
disconnection\n

Other error codes are internal but can be considered same than
SSH_FATAL.
@brief Retrieve the error code from the last error . \ return SSH_NO_ERROR No error occurred \ n SSH_REQUEST_DENIED The last request was denied but situation is recoverable \ n SSH_FATAL A fatal error occurred . This could be an unexpected disconnection \ n Other error codes are internal but can be considered same than SSH_FATAL .
int ssh_get_error_code(void *error) {
  struct error_struct *err = error;
  return err->error_code;
}
int ssh_get_error_code ( void * error ) { struct error_struct * err = error ; return err -> error_code ; }
@brief Retrieve the error code from the last error.
@brief Retrieve the error code from the last error .