log TLS handshake messages in debug level 2
This commit is contained in:
@@ -119,6 +119,8 @@ static status_t process_handshake(private_tls_fragmentation_t *this,
|
|||||||
if (this->input.len == this->inpos)
|
if (this->input.len == this->inpos)
|
||||||
{ /* message completely defragmented, process */
|
{ /* message completely defragmented, process */
|
||||||
msg = tls_reader_create(this->input);
|
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);
|
status = this->handshake->process(this->handshake, this->type, msg);
|
||||||
msg->destroy(msg);
|
msg->destroy(msg);
|
||||||
chunk_free(&this->input);
|
chunk_free(&this->input);
|
||||||
@@ -192,6 +194,8 @@ METHOD(tls_fragmentation_t, build, status_t,
|
|||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
case NEED_MORE:
|
case NEED_MORE:
|
||||||
|
DBG2(DBG_IKE, "sending TLS %N message",
|
||||||
|
tls_handshake_type_names, hs_type);
|
||||||
msg->write_uint8(msg, hs_type);
|
msg->write_uint8(msg, hs_type);
|
||||||
msg->write_data24(msg, writer->get_buf(writer));
|
msg->write_data24(msg, writer->get_buf(writer));
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user