mirror of
https://github.com/libssh2/libssh2.git
synced 2025-10-31 23:30:25 +03:00
Add LIBSSH2_TRACE_SOCKET context for tracing send() and recv()
Helpful in debugging the -39 errors.
This commit is contained in:
@@ -1022,6 +1022,8 @@ struct _LIBSSH2_MAC_METHOD
|
||||
#define LIBSSH2_DBG_SFTP 6
|
||||
#define LIBSSH2_DBG_ERROR 7
|
||||
#define LIBSSH2_DBG_PUBLICKEY 8
|
||||
#define LIBSSH2_DBG_SOCKET 9
|
||||
|
||||
#ifdef LIBSSH2DEBUG
|
||||
void _libssh2_debug(LIBSSH2_SESSION * session, int context, const char *format,
|
||||
...);
|
||||
@@ -1271,4 +1273,7 @@ int _libssh2_pem_decode_integer(unsigned char **data, unsigned int *datalen,
|
||||
} while(1)
|
||||
|
||||
|
||||
#define ARRAY_SIZE(a) (sizeof ((a)) / sizeof ((a)[0]))
|
||||
|
||||
|
||||
#endif /* LIBSSH2_H */
|
||||
|
||||
Reference in New Issue
Block a user