set EAP-TTLS/TNC version also in acknowledgement packets

This commit is contained in:
Andreas Steffen
2010-10-04 14:39:49 +02:00
parent a8809bb0cb
commit 0cfdbaff2c
+11
View File
@@ -250,6 +250,17 @@ static chunk_t create_ack(private_tls_eap_t *this, u_int8_t identifier)
.type = this->type,
};
htoun16(&pkt.length, sizeof(pkt));
switch (this->type)
{
case EAP_TTLS:
pkt.flags |= EAP_TTLS_SUPPORTED_VERSION;
break;
case EAP_TNC:
pkt.flags |= EAP_TNC_SUPPORTED_VERSION;
break;
default:
break;
}
DBG2(DBG_TLS, "sending %N acknowledgement packet",
eap_type_names, this->type);
return chunk_clone(chunk_from_thing(pkt));