aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/eap_tls/eap_tls.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-08-10 19:01:55 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2010-08-10 19:02:05 +0200
commit133accfcfd9cd7c24cb3980c3b5573911c4c7333 (patch)
tree955698fa5dbdb3b858ec0b1513756204c159816c /src/libcharon/plugins/eap_tls/eap_tls.c
parent07d2b39123dad0b25ad722651f9583ee1be195dd (diff)
downloadstrongswan-133accfcfd9cd7c24cb3980c3b5573911c4c7333.tar.bz2
strongswan-133accfcfd9cd7c24cb3980c3b5573911c4c7333.tar.xz
differentiate between TLS messages and EAP-[T]TLS packets in the debug output
Diffstat (limited to 'src/libcharon/plugins/eap_tls/eap_tls.c')
-rw-r--r--src/libcharon/plugins/eap_tls/eap_tls.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcharon/plugins/eap_tls/eap_tls.c b/src/libcharon/plugins/eap_tls/eap_tls.c
index 2313aacdf..a2407e51d 100644
--- a/src/libcharon/plugins/eap_tls/eap_tls.c
+++ b/src/libcharon/plugins/eap_tls/eap_tls.c
@@ -120,7 +120,7 @@ METHOD(eap_method_t, initiate, status_t,
do {
pkt.identifier = random();
} while (!pkt.identifier);
- DBG2(DBG_IKE, "sending TLS start packet");
+ DBG2(DBG_IKE, "sending EAP-TLS start packet");
*out = eap_payload_create_data(chunk_from_thing(pkt));
return NEED_MORE;
@@ -195,7 +195,7 @@ static eap_payload_t *create_ack(private_eap_tls_t *this, u_int8_t identifier)
.type = EAP_TLS,
};
htoun16(&pkt.length, sizeof(pkt));
- DBG2(DBG_IKE, "sending TLS acknowledgement packet");
+ DBG2(DBG_IKE, "sending EAP-TLS acknowledgement packet");
return eap_payload_create_data(chunk_from_thing(pkt));
}
@@ -231,7 +231,7 @@ static eap_payload_t *read_buf(private_eap_tls_t *this, u_int8_t identifier)
pkt_len += EAP_TLS_FRAGMENT_LEN;
memcpy(start, this->output.ptr + this->outpos, EAP_TLS_FRAGMENT_LEN);
this->outpos += EAP_TLS_FRAGMENT_LEN;
- DBG2(DBG_IKE, "sending TLS packet fragment");
+ DBG2(DBG_IKE, "sending EAP-TLS packet fragment");
}
else
{
@@ -240,12 +240,12 @@ static eap_payload_t *read_buf(private_eap_tls_t *this, u_int8_t identifier)
this->output.len - this->outpos);
chunk_free(&this->output);
this->outpos = 0;
- DBG2(DBG_IKE, "sending TLS packet");
+ DBG2(DBG_IKE, "sending EAP-TLS packet");
}
}
else
{
- DBG2(DBG_IKE, "sending TLS acknowledgement packet");
+ DBG2(DBG_IKE, "sending EAP-TLS acknowledgement packet");
}
htoun16(&pkt->length, pkt_len);
return eap_payload_create_data(chunk_create(buf, pkt_len));