aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_fragmentation.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-08-04 16:55:47 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2010-08-04 16:55:55 +0200
commit289c9ac3d775310dff293496409f44fd3b56b5a9 (patch)
tree19cfe3edda4f50ddf5e4d7d4d8fd0c5a692d1d5e /src/libtls/tls_fragmentation.c
parent744b83c7c99527093e837c9345a93546a4a85921 (diff)
downloadstrongswan-289c9ac3d775310dff293496409f44fd3b56b5a9.tar.bz2
strongswan-289c9ac3d775310dff293496409f44fd3b56b5a9.tar.xz
log TLS handshake messages in debug level 2
Diffstat (limited to 'src/libtls/tls_fragmentation.c')
-rw-r--r--src/libtls/tls_fragmentation.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libtls/tls_fragmentation.c b/src/libtls/tls_fragmentation.c
index a8d8aa289..f95fe4f2e 100644
--- a/src/libtls/tls_fragmentation.c
+++ b/src/libtls/tls_fragmentation.c
@@ -119,6 +119,8 @@ static status_t process_handshake(private_tls_fragmentation_t *this,
if (this->input.len == this->inpos)
{ /* message completely defragmented, process */
msg = tls_reader_create(this->input);
+ DBG2(DBG_IKE, "received TLS %N message",
+ tls_handshake_type_names, this->type);
status = this->handshake->process(this->handshake, this->type, msg);
msg->destroy(msg);
chunk_free(&this->input);
@@ -192,6 +194,8 @@ METHOD(tls_fragmentation_t, build, status_t,
switch (status)
{
case NEED_MORE:
+ DBG2(DBG_IKE, "sending TLS %N message",
+ tls_handshake_type_names, hs_type);
msg->write_uint8(msg, hs_type);
msg->write_data24(msg, writer->get_buf(writer));
break;