EAP-TLS and EAP-TTLS use different constant MSK PRF label

This commit is contained in:
Andreas Steffen
2010-08-07 11:26:04 +02:00
parent b4d30a425e
commit a6444fcdd4
6 changed files with 20 additions and 9 deletions
+2 -2
View File
@@ -172,7 +172,7 @@ METHOD(tls_t, destroy, void,
* See header
*/
tls_t *tls_create(bool is_server, identification_t *server,
identification_t *peer)
identification_t *peer, char *msk_label)
{
private_tls_t *this;
@@ -193,7 +193,7 @@ tls_t *tls_create(bool is_server, identification_t *server,
.peer = peer->clone(peer),
);
this->crypto = tls_crypto_create(&this->public);
this->crypto = tls_crypto_create(&this->public, msk_label);
if (is_server)
{
this->handshake = &tls_server_create(&this->public, this->crypto,