aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_eap.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2012-07-09 22:08:04 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2012-07-11 17:09:05 +0200
commit6245edf37e1a90e1f62ece62b59c539f0e816482 (patch)
treeb8d02a99d03a75201e4e56089f62eb78aa2d33b4 /src/libtls/tls_eap.c
parentc8aabefd089175201b584c39438012d793996e43 (diff)
downloadstrongswan-6245edf37e1a90e1f62ece62b59c539f0e816482.tar.bz2
strongswan-6245edf37e1a90e1f62ece62b59c539f0e816482.tar.xz
eliminate message length field in EAP-TNC
Diffstat (limited to 'src/libtls/tls_eap.c')
-rw-r--r--src/libtls/tls_eap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libtls/tls_eap.c b/src/libtls/tls_eap.c
index e84da7061..59723fdd1 100644
--- a/src/libtls/tls_eap.c
+++ b/src/libtls/tls_eap.c
@@ -251,11 +251,15 @@ static status_t build_pkt(private_tls_eap_t *this, chunk_t *out)
}
kind = "packet";
}
- else
+ else if (this->type != EAP_TNC)
{
this->first_fragment = TRUE;
kind = "final fragment";
}
+ else
+ {
+ kind = "packet";
+ }
break;
default:
return status;
@@ -448,7 +452,7 @@ tls_eap_t *tls_eap_create(eap_type_t type, tls_t *tls, size_t frag_size,
},
.type = type,
.is_server = tls->is_server(tls),
- .first_fragment = TRUE,
+ .first_fragment = (type != EAP_TNC),
.frag_size = frag_size,
.max_msg_count = max_msg_count,
.include_length = include_length,