tls-eap: Conclude EAP method also after processing packets

With TLS 1.3, the server sends its Finished message first, so the
session is complete after processing the client's Finished message,
without having to send anything else (in particular no acknowledgement
as the last message from the client is no fragment).
This commit is contained in:
Tobias Brunner 2021-01-14 18:02:00 +01:00
parent a00ace0fe2
commit 083f38259c
1 changed files with 4 additions and 0 deletions

View File

@ -394,6 +394,10 @@ METHOD(tls_eap_t, process, status_t,
switch (status)
{
case INVALID_STATE:
if (this->tls->is_complete(this->tls))
{
return SUCCESS;
}
*out = create_ack(this);
return NEED_MORE;
case FAILED: