-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
53 lines (45 loc) · 1.18 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef CONFIGREADER_H
#define CONFIGREADER_H
#include <stdio.h>
/* forward declarations */
extern FILE *configreaderin;
struct config_ssid {
char ssid_name[32];
char ssid_user[32];
char ssid_pass[32];
char ssid_bssid[20];
int8_t ssid_rssi;
char ssid_auth[10];
char ssid_eap [40];
char ssid_key_mgmt[40];
char ssid_identity[32];
char ssid_phase1[40];
char ssid_phase2[40];
char ssid_group[15];
char ssid_pairwise[15];
char ssid_ca_cert[50];
char ssid_client_cert[50];
char ssid_private_key[50];
char ssid_private_key_pwd[50];
char ssid_anonymous[50];
int *ssid_eapol;
char additional_auth_script[50];
struct config_ssid *next;
};
struct config_interfaces {
char if_name [32];
struct config_ssid *ssids;
struct config_interfaces *next;
int ipv6_auto;
int supplicant_pid;
int additional_auth_exec;
};
pid_t supplicant_pid;
char ncsi_ping[80];
extern const char config_file[];
extern struct config_interfaces *config;
void clear_ssid(struct config_ssid *);
void clear_config(struct config_interfaces *);
int parse_config();
struct config_interfaces *find_config(char *);
#endif /* CONFIGREADER_H */