1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-07 08:02:56 +03:00

change transport to use unified error codes

I added three new public error codes, and then modified the return
codes we use in the transport layer to use the generic error codes
so that there won't be any risk of internal confusions due to
different error code sets.
This commit is contained in:
Daniel Stenberg
2009-08-24 22:27:11 +02:00
parent 13c16db3bc
commit 314e61e545
2 changed files with 14 additions and 10 deletions

View File

@@ -356,6 +356,9 @@ typedef struct _LIBSSH2_POLLFD {
#define LIBSSH2_ERROR_PUBLICKEY_PROTOCOL -36
#define LIBSSH2_ERROR_EAGAIN -37
#define LIBSSH2_ERROR_BUFFER_TOO_SMALL -38
#define LIBSSH2_ERROR_BAD_USE -39
#define LIBSSH2_ERROR_COMPRESS -40
#define LIBSSH2_ERROR_OUT_OF_BOUNDARY -41
/* Session API */
LIBSSH2_API LIBSSH2_SESSION *