• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/gctwimax-0.0.3rc4/src/
1#ifndef _CONFIG_H
2#define _CONFIG_H
3
4#include <stdint.h>
5
6#include "utils/includes.h"
7#include "utils/common.h"
8#include "eap_common/eap_defs.h"
9#include "eap_peer/eap_methods.h"
10#include "eap_peer/eap.h"
11
12#ifndef BIT
13#define BIT(x) (1 << (x))
14#endif
15
16
17struct gct_config {
18	uint32_t	nspid;
19	int 		wimax_verbose_level;
20	int 		wpa_debug_level;
21	char * 		log_file;
22	char * 		event_script;
23
24	int 		use_pkm;
25	int 		use_nv;
26	int 		eap_type;
27	int 		ca_cert_null;
28	int 		dev_cert_null;
29	int 		cert_nv;
30	uint8_t *	anonymous_identity;
31	size_t 		anonymous_identity_len;
32	uint8_t *	identity;
33	size_t 		identity_len;
34	uint8_t * 	password;
35	size_t 		password_len;
36	uint8_t * 	ca_cert;
37	uint8_t * 	client_cert;
38	uint8_t * 	private_key;
39	uint8_t * 	private_key_passwd;
40	struct eap_method_type *eap_methods;
41	char * 		phase1;
42	char * 		phase2;
43#define EAP_CONFIG_FLAGS_PASSWORD_NTHASH BIT(0)
44	uint32_t 	flags;
45};
46
47
48struct gct_config * gct_config_read(const char *name);
49void gct_config_free(struct gct_config *config);
50char * rel2abs_path(const char *rel_path);
51
52#endif /*_CONFIG_H*/
53