Introducing simple purposes for the TLS stack, switches various options

This commit is contained in:
Martin Willi
2010-08-20 15:09:08 +02:00
parent 6291fbedcb
commit 96b2fbcc2c
9 changed files with 113 additions and 30 deletions
+6 -3
View File
@@ -441,10 +441,13 @@ static eap_tls_t *eap_tls_create(identification_t *server,
},
.is_server = is_server,
);
/* MSK PRF ASCII constant label according to EAP-TLS RFC 5216 */
this->tls = tls_create(is_server, server, peer, TRUE,
"client EAP encryption", NULL);
this->tls = tls_create(is_server, server, peer, TLS_PURPOSE_EAP_TLS, NULL);
if (!this->tls)
{
free(this);
return NULL;
}
return &this->public;
}