| 
									
										
										
										
											2016-11-13 17:23:44 +02:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * EAP peer state machine functions (RFC 4137) | 
					
						
							|  |  |  |  * Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This software may be distributed under the terms of the BSD license. | 
					
						
							|  |  |  |  * See README for more details. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef EAP_H
 | 
					
						
							|  |  |  | #define EAP_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "wpa/defs.h"
 | 
					
						
							| 
									
										
										
										
											2018-06-27 09:01:06 +02:00
										 |  |  | #include "wpa2/eap_peer/eap_defs.h"
 | 
					
						
							| 
									
										
										
										
											2016-11-13 17:23:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | struct eap_sm; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct eap_method_type { | 
					
						
							|  |  |  | 	int vendor; | 
					
						
							| 
									
										
										
										
											2018-06-27 09:01:06 +02:00
										 |  |  | 	EapType method; | 
					
						
							| 
									
										
										
										
											2016-11-13 17:23:44 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-27 09:01:06 +02:00
										 |  |  | u8 *g_wpa_anonymous_identity; | 
					
						
							|  |  |  | int g_wpa_anonymous_identity_len; | 
					
						
							|  |  |  | u8 *g_wpa_username; | 
					
						
							|  |  |  | int g_wpa_username_len; | 
					
						
							|  |  |  | const u8 *g_wpa_client_cert; | 
					
						
							|  |  |  | int g_wpa_client_cert_len; | 
					
						
							|  |  |  | const u8 *g_wpa_private_key; | 
					
						
							|  |  |  | int g_wpa_private_key_len; | 
					
						
							|  |  |  | const u8 *g_wpa_private_key_passwd; | 
					
						
							|  |  |  | int g_wpa_private_key_passwd_len; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const u8 *g_wpa_ca_cert; | 
					
						
							|  |  |  | int g_wpa_ca_cert_len; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | u8 *g_wpa_password; | 
					
						
							|  |  |  | int g_wpa_password_len; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | u8 *g_wpa_new_password; | 
					
						
							|  |  |  | int g_wpa_new_password_len; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-13 17:23:44 +02:00
										 |  |  | const u8 * eap_get_eapKeyData(struct eap_sm *sm, size_t *len); | 
					
						
							| 
									
										
										
										
											2018-06-27 09:01:06 +02:00
										 |  |  | void eap_deinit_prev_method(struct eap_sm *sm, const char *txt); | 
					
						
							|  |  |  | struct wpabuf * eap_sm_build_nak(struct eap_sm *sm, EapType type, u8 id); | 
					
						
							|  |  |  | int eap_peer_blob_init(struct eap_sm *sm); | 
					
						
							|  |  |  | void eap_peer_blob_deinit(struct eap_sm *sm); | 
					
						
							|  |  |  | int eap_peer_config_init( | 
					
						
							|  |  |  | 	struct eap_sm *sm, u8 *private_key_passwd, | 
					
						
							|  |  |  | 	int private_key_passwd_len); | 
					
						
							|  |  |  | void eap_peer_config_deinit(struct eap_sm *sm); | 
					
						
							|  |  |  | void eap_sm_abort(struct eap_sm *sm); | 
					
						
							|  |  |  | int eap_peer_register_methods(void); | 
					
						
							| 
									
										
										
										
											2016-11-13 17:23:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif /* EAP_H */
 |