Introducing simple purposes for the TLS stack, switches various options
This commit is contained in:
@@ -450,9 +450,15 @@ static eap_ttls_t *eap_ttls_create(identification_t *server,
|
||||
},
|
||||
.is_server = is_server,
|
||||
);
|
||||
/* MSK PRF ASCII constant label according to EAP-TTLS RFC 5281 */
|
||||
this->tls = tls_create(is_server, server, peer, FALSE,
|
||||
"ttls keying material", application);
|
||||
|
||||
this->tls = tls_create(is_server, server, peer,
|
||||
TLS_PURPOSE_EAP_TTLS, application);
|
||||
if (!this->tls)
|
||||
{
|
||||
application->destroy(application);
|
||||
free(this);
|
||||
return NULL;
|
||||
}
|
||||
return &this->public;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user