aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/priv.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-07-19 22:16:28 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2011-07-19 22:16:28 +0200
commitda954c2c5ee85bcbe2f5ad9f507a6306b0f5f8b9 (patch)
treeb13cc18e78ff7a0549974b4823678f189fe82b6a /include/libssh/priv.h
parentdc9ac022f5590272cc7a3dc18726802ffdc73c8f (diff)
downloadlibssh-da954c2c5ee85bcbe2f5ad9f507a6306b0f5f8b9.tar.gz
libssh-da954c2c5ee85bcbe2f5ad9f507a6306b0f5f8b9.tar.xz
libssh-da954c2c5ee85bcbe2f5ad9f507a6306b0f5f8b9.zip
Fixes the ssh_log issue on ssh_bind handles.
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index de965f51..0859f4b9 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -141,6 +141,7 @@ struct ssh_keys_struct {
};
struct ssh_message_struct;
+struct ssh_common_struct;
/* server data */
@@ -216,6 +217,9 @@ int match_hostname(const char *host, const char *pattern, unsigned int len);
int message_handle(ssh_session session, void *user, uint8_t type, ssh_buffer packet);
/* log.c */
+void ssh_log_common(struct ssh_common_struct *common, int verbosity,
+ const char *format, ...) PRINTF_ATTRIBUTE(3, 4);
+
/* misc.c */
#ifdef _WIN32
int gettimeofday(struct timeval *__p, void *__t);
@@ -229,16 +233,16 @@ int gettimeofday(struct timeval *__p, void *__t);
#define _enter_function(sess) \
do {\
- if((sess)->log_verbosity >= SSH_LOG_FUNCTIONS){ \
+ if((sess)->common.log_verbosity >= SSH_LOG_FUNCTIONS){ \
ssh_log((sess),SSH_LOG_FUNCTIONS,"entering function %s line %d in " __FILE__ , __FUNCTION__,__LINE__);\
- (sess)->log_indent++; \
+ (sess)->common.log_indent++; \
} \
} while(0)
#define _leave_function(sess) \
do { \
- if((sess)->log_verbosity >= SSH_LOG_FUNCTIONS){ \
- (sess)->log_indent--; \
+ if((sess)->common.log_verbosity >= SSH_LOG_FUNCTIONS){ \
+ (sess)->common.log_indent--; \
ssh_log((sess),SSH_LOG_FUNCTIONS,"leaving function %s line %d in " __FILE__ , __FUNCTION__,__LINE__);\
}\
} while(0)