do not dump tls application data any more
This commit is contained in:
@@ -146,21 +146,19 @@ static status_t process_application(private_tls_fragmentation_t *this,
|
|||||||
{
|
{
|
||||||
while (reader->remaining(reader))
|
while (reader->remaining(reader))
|
||||||
{
|
{
|
||||||
u_int32_t len;
|
status_t status;
|
||||||
chunk_t data;
|
|
||||||
|
|
||||||
if (reader->remaining(reader) > MAX_TLS_FRAGMENT_LEN)
|
if (reader->remaining(reader) > MAX_TLS_FRAGMENT_LEN)
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "TLS fragment has invalid length");
|
DBG1(DBG_IKE, "TLS fragment has invalid length");
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
|
DBG2(DBG_IKE, "received TLS application data");
|
||||||
len = reader->remaining(reader);
|
status = this->application->process(this->application, reader);
|
||||||
if (!reader->read_data(reader, len, &data))
|
if (status != NEED_MORE)
|
||||||
{
|
{
|
||||||
return FAILED;
|
return status;
|
||||||
}
|
}
|
||||||
DBG1(DBG_IKE, "received TLS application data: %B", &data);
|
|
||||||
}
|
}
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
}
|
}
|
||||||
@@ -230,8 +228,7 @@ METHOD(tls_fragmentation_t, build, status_t,
|
|||||||
this->output = chunk_clone(msg->get_buf(msg));
|
this->output = chunk_clone(msg->get_buf(msg));
|
||||||
if (this->output.len)
|
if (this->output.len)
|
||||||
{
|
{
|
||||||
DBG2(DBG_IKE, "sending TLS application data: %B",
|
DBG2(DBG_IKE, "sending TLS application data");
|
||||||
&this->output);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user