diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-08-07 11:24:59 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-08-07 11:26:04 +0200 |
commit | ded59df4fc67acf67d962c497f58e3bf23367455 (patch) | |
tree | dcdd479cedc5d59475fd3dd37779a7273da9ebd3 /src/libcharon/plugins/eap_tls/eap_tls.c | |
parent | ab47a7924b7fc2e21fe73388e1f82d1544f0e2cb (diff) | |
download | strongswan-ded59df4fc67acf67d962c497f58e3bf23367455.tar.bz2 strongswan-ded59df4fc67acf67d962c497f58e3bf23367455.tar.xz |
added level 2 debug info on sent TLS packets
Diffstat (limited to 'src/libcharon/plugins/eap_tls/eap_tls.c')
-rw-r--r-- | src/libcharon/plugins/eap_tls/eap_tls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcharon/plugins/eap_tls/eap_tls.c b/src/libcharon/plugins/eap_tls/eap_tls.c index dcbbbd4be..8871e1a6a 100644 --- a/src/libcharon/plugins/eap_tls/eap_tls.c +++ b/src/libcharon/plugins/eap_tls/eap_tls.c @@ -120,6 +120,7 @@ METHOD(eap_method_t, initiate, status_t, do { pkt.identifier = random(); } while (!pkt.identifier); + DBG2(DBG_IKE, "sending TLS start packet"); *out = eap_payload_create_data(chunk_from_thing(pkt)); return NEED_MORE; @@ -194,6 +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"); return eap_payload_create_data(chunk_from_thing(pkt)); } @@ -229,6 +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"); } else { @@ -237,6 +240,7 @@ 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"); } } htoun16(&pkt->length, pkt_len); |