added TLS_PURPOSE_EAP_PEAP
This commit is contained in:
@@ -433,6 +433,7 @@ tls_t *tls_create(bool is_server, identification_t *server,
|
||||
{
|
||||
case TLS_PURPOSE_EAP_TLS:
|
||||
case TLS_PURPOSE_EAP_TTLS:
|
||||
case TLS_PURPOSE_EAP_PEAP:
|
||||
case TLS_PURPOSE_GENERIC:
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -96,6 +96,8 @@ enum tls_purpose_t {
|
||||
TLS_PURPOSE_EAP_TLS,
|
||||
/** outer authentication and protection in EAP-TTLS */
|
||||
TLS_PURPOSE_EAP_TTLS,
|
||||
/** outer authentication and protection in EAP-PEAP */
|
||||
TLS_PURPOSE_EAP_PEAP,
|
||||
/** non-EAP TLS */
|
||||
TLS_PURPOSE_GENERIC,
|
||||
/** EAP binding for TNC */
|
||||
|
||||
@@ -1659,6 +1659,7 @@ tls_crypto_t *tls_crypto_create(tls_t *tls)
|
||||
switch (tls->get_purpose(tls))
|
||||
{
|
||||
case TLS_PURPOSE_EAP_TLS:
|
||||
case TLS_PURPOSE_EAP_PEAP:
|
||||
/* MSK PRF ASCII constant label according to EAP-TLS RFC 5216 */
|
||||
this->msk_label = "client EAP encryption";
|
||||
build_cipher_suite_list(this, FALSE);
|
||||
|
||||
Reference in New Issue
Block a user