esp_wifi: Add support for EAP-FAST authentication method

This commit is contained in:
Hrudaynath Dhabe
2021-08-30 15:42:32 +05:30
parent a18cb70905
commit 5f96a6ffd2
28 changed files with 3943 additions and 136 deletions

View File

@@ -107,6 +107,10 @@ static int eap_tls_params_from_conf(struct eap_sm *sm,
wpa_printf(MSG_DEBUG, "TLS: using phase1 config options");
eap_tls_params_from_conf1(params, config);
if (data->eap_type == EAP_TYPE_FAST) {
wpa_printf(MSG_DEBUG, "EAP-TYPE == EAP-FAST #####################################");
params->flags |= TLS_CONN_EAP_FAST;
}
/*
* Use blob data, if available. Otherwise, leave reference to external
@@ -259,7 +263,7 @@ u8 * eap_peer_tls_derive_key(struct eap_sm *sm, struct eap_ssl_data *data,
if (out == NULL)
return NULL;
if (tls_connection_export_key(data->ssl_ctx, data->conn, label, out,
if (tls_connection_export_key(data->ssl_ctx, data->conn, label, 0, 0, out,
len)) {
os_free(out);
return NULL;