mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-18 23:54:39 +00:00
esp_wifi: Add support for EAP-FAST authentication method
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user