Check if the application layer has completed successfully

This commit is contained in:
Martin Willi
2010-08-24 08:45:49 +02:00
parent 1475800080
commit c5142f110e
3 changed files with 62 additions and 16 deletions
+9 -1
View File
@@ -243,7 +243,15 @@ METHOD(tls_t, get_purpose, tls_purpose_t,
METHOD(tls_t, is_complete, bool,
private_tls_t *this)
{
return this->crypto->get_eap_msk(this->crypto).len != 0;
if (this->handshake->finished(this->handshake))
{
if (!this->application)
{
return TRUE;
}
return this->fragmentation->application_finished(this->fragmentation);
}
return FALSE;
}
METHOD(tls_t, get_eap_msk, chunk_t,