do not include length field in non-fragmented EAP-PEAP packets
This commit is contained in:
@@ -126,6 +126,7 @@ static eap_tnc_t *eap_tnc_create(identification_t *server,
|
||||
private_eap_tnc_t *this;
|
||||
size_t frag_size;
|
||||
int max_msg_count;
|
||||
bool include_length;
|
||||
char* protocol;
|
||||
tnccs_type_t type;
|
||||
tnccs_t *tnccs;
|
||||
@@ -149,7 +150,9 @@ static eap_tnc_t *eap_tnc_create(identification_t *server,
|
||||
"charon.plugins.eap-tnc.fragment_size", MAX_FRAGMENT_LEN);
|
||||
max_msg_count = lib->settings->get_int(lib->settings,
|
||||
"charon.plugins.eap-tnc.max_message_count", MAX_MESSAGE_COUNT);
|
||||
protocol = lib->settings->get_str(lib->settings,
|
||||
include_length = lib->settings->get_bool(lib->settings,
|
||||
"charon.plugins.eap-tnc.include_length", TRUE);
|
||||
protocol = lib->settings->get_str(lib->settings,
|
||||
"charon.plugins.eap-tnc.protocol", "tnccs-1.1");
|
||||
if (strcaseeq(protocol, "tnccs-2.0"))
|
||||
{
|
||||
@@ -170,7 +173,8 @@ static eap_tnc_t *eap_tnc_create(identification_t *server,
|
||||
return NULL;
|
||||
}
|
||||
tnccs = charon->tnccs->create_instance(charon->tnccs, type, is_server);
|
||||
this->tls_eap = tls_eap_create(EAP_TNC, (tls_t*)tnccs, frag_size, max_msg_count);
|
||||
this->tls_eap = tls_eap_create(EAP_TNC, (tls_t*)tnccs, frag_size,
|
||||
max_msg_count, include_length);
|
||||
if (!this->tls_eap)
|
||||
{
|
||||
free(this);
|
||||
|
||||
Reference in New Issue
Block a user