MeterLogger
wpa2_enterprise.h
Go to the documentation of this file.
1 /*
2  * ESPRSSIF MIT License
3  *
4  * Copyright (c) 2016 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
5  *
6  * Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
7  * it is free of charge, to any person obtaining a copy of this software and associated
8  * documentation files (the "Software"), to deal in the Software without restriction, including
9  * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  * and/or sell copies of the Software, and to permit persons to whom the Software is furnished
11  * to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all copies or
14  * substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22  *
23  */
24 
25 #ifndef __WPA2_ENTERPRISE_H__
26 #define __WPA2_ENTERPRISE_H__
27 
28 typedef long os_time_t;
29 
30 struct os_time {
33 };
34 
35 typedef int (* get_time_func_t)(struct os_time *t);
36 
38 
39 int wifi_station_set_enterprise_cert_key(u8 *client_cert, int client_cert_len,
40  u8 *private_key, int private_key_len,
41  u8 *private_key_passwd, int private_key_passwd_len);
43 
44 int wifi_station_set_enterprise_ca_cert(u8 *ca_cert, int ca_cert_len);
46 
47 int wifi_station_set_enterprise_username(u8 *username, int len);
49 
50 int wifi_station_set_enterprise_password(u8 *password, int len);
52 
53 int wifi_station_set_enterprise_new_password(u8 *new_password, int len);
55 
58 
60 
61 
62 #endif /* __WPA2_ENTERPRISE_H__ */
void wifi_station_clear_enterprise_username(void)
void wifi_station_clear_enterprise_new_password(void)
int wifi_station_set_enterprise_username(u8 *username, int len)
void wpa2_enterprise_set_user_get_time(get_time_func_t cb)
int wifi_station_set_wpa2_enterprise_auth(int enable)
os_time_t usec
int wifi_station_set_enterprise_ca_cert(u8 *ca_cert, int ca_cert_len)
void wifi_station_clear_enterprise_password(void)
int(* get_time_func_t)(struct os_time *t)
int wifi_station_set_enterprise_cert_key(u8 *client_cert, int client_cert_len, u8 *private_key, int private_key_len, u8 *private_key_passwd, int private_key_passwd_len)
int wifi_station_set_enterprise_new_password(u8 *new_password, int len)
void wifi_station_set_enterprise_disable_time_check(bool disable)
bool wifi_station_get_enterprise_disable_time_check(void)
void wifi_station_clear_enterprise_cert_key(void)
unsigned char u8
Definition: c_types.h:46
int wifi_station_set_enterprise_password(u8 *password, int len)
os_time_t sec
long os_time_t
void wifi_station_clear_enterprise_ca_cert(void)