diff options
author | Christian Pointner <equinox@anytun.org> | 2014-07-13 19:12:08 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-07-13 19:12:08 +0000 |
commit | 752c2439910dc10723e67728cd110fb9701564c2 (patch) | |
tree | 6b128f0004ee496b67329aa7b2f50e406258621f | |
parent | only one unix socket for key exchange because seperation of data and control ... (diff) |
improved log messages for key exchange
-rw-r--r-- | src/keyexchange.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/keyexchange.c b/src/keyexchange.c index bea600f..e388a1a 100644 --- a/src/keyexchange.c +++ b/src/keyexchange.c @@ -88,7 +88,7 @@ static int keyexchange_handle_accept(keyexchange_t* kx, unixdomain_t* sock) return -1; } if(old_fd != sock->client_fd_) { - log_printf(INFO, "key exchange: new client"); + log_printf(INFO, "key exchange: connection established"); } return 0; } @@ -100,9 +100,9 @@ static int keyexchange_handle_read_data(keyexchange_t* kx) int len = unixdomain_read(&(kx->socket_), kx->data_buf_, sizeof(kx->data_buf_) - 1); if(len <= 0) { if(!len) - log_printf(INFO, "key exchange: data interface disconnected"); + log_printf(INFO, "key exchange: disconnected"); else - log_printf(ERROR, "key exchange: data interface error: %s", strerror(errno)); + log_printf(ERROR, "key exchange: read error: %s", strerror(errno)); kx->socket_.client_fd_ = -1; } else { // TODO: this is a temporary fix for strings ending with linefeed @@ -112,7 +112,7 @@ static int keyexchange_handle_read_data(keyexchange_t* kx) kx->data_buf_len_ = len; kx->data_buf_[kx->data_buf_len_] = 0; - log_printf(DEBUG, "key exchange: data interface received string '%s'", kx->data_buf_); + log_printf(DEBUG, "key exchange: received string '%s'", kx->data_buf_); } return 0; |