generalized tls_eap_t to support EAP_TNC wrapping the TNC_IF_TNCCS protocol

This commit is contained in:
Andreas Steffen
2010-09-08 11:01:53 +02:00
parent 7b3c01845f
commit d2b1d4378e
9 changed files with 290 additions and 130 deletions
+8 -2
View File
@@ -123,6 +123,7 @@ static eap_tls_t *eap_tls_create(identification_t *server,
{
private_eap_tls_t *this;
size_t frag_size;
tls_t *tls;
INIT(this,
.public = {
@@ -139,8 +140,13 @@ static eap_tls_t *eap_tls_create(identification_t *server,
frag_size = lib->settings->get_int(lib->settings,
"charon.plugins.eap-tls.fragment_size", MAX_FRAGMENT_LEN);
this->tls_eap = tls_eap_create(EAP_TLS, is_server, server, peer,
NULL, frag_size);
tls = tls_create(is_server, server, peer, TLS_PURPOSE_EAP_TLS, NULL);
if (!tls)
{
free(this);
return NULL;
}
this->tls_eap = tls_eap_create(EAP_TLS, tls, frag_size);
if (!this->tls_eap)
{
free(this);