mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 22:08:28 +00:00 
			
		
		
		
	fix(wpa_supplicant): Update cipher suite list for TLSv1.3 suiteb and some refactoring
- Use MBEDTLS_TLS1_3_AES_256_GCM_SHA384 cipher for TLSv1.3-suiteb - Call psa_crypto_init() in tls_connection_init() to reduce redundancy
This commit is contained in:
		@@ -22,9 +22,6 @@
 | 
			
		||||
#include "eap_peer/eap_config.h"
 | 
			
		||||
#include "eap_peer/eap_methods.h"
 | 
			
		||||
 | 
			
		||||
#ifdef CONFIG_TLSV13
 | 
			
		||||
#include "psa/crypto.h"
 | 
			
		||||
#endif /* CONFIG_TLSV13 */
 | 
			
		||||
 | 
			
		||||
#define EAP_TTLS_VERSION 0
 | 
			
		||||
 | 
			
		||||
@@ -75,13 +72,6 @@ static void * eap_ttls_init(struct eap_sm *sm)
 | 
			
		||||
{
 | 
			
		||||
	struct eap_ttls_data *data;
 | 
			
		||||
	struct eap_peer_config *config = eap_get_config(sm);
 | 
			
		||||
#ifdef CONFIG_TLSV13
 | 
			
		||||
	psa_status_t status = psa_crypto_init();
 | 
			
		||||
	if (status != PSA_SUCCESS) {
 | 
			
		||||
		wpa_printf(MSG_ERROR, "EAP-TTLS: Failed to initialize PSA crypto, returned %d", (int) status);
 | 
			
		||||
		return NULL;
 | 
			
		||||
	}
 | 
			
		||||
#endif /* CONFIG_TLSV13 */
 | 
			
		||||
 | 
			
		||||
	data = (struct eap_ttls_data *)os_zalloc(sizeof(*data));
 | 
			
		||||
	if (data == NULL)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user