… | |
… | |
57 | |
57 | |
58 | u32 routerprio; |
58 | u32 routerprio; |
59 | |
59 | |
60 | void print (); |
60 | void print (); |
61 | |
61 | |
62 | ~conf_node () |
62 | ~conf_node (); |
63 | { |
|
|
64 | if (rsa_key) |
|
|
65 | RSA_free (rsa_key); |
|
|
66 | |
|
|
67 | free (nodename); |
|
|
68 | free (hostname); |
|
|
69 | } |
|
|
70 | }; |
63 | }; |
71 | |
64 | |
72 | struct configuration { |
65 | struct configuration { |
73 | typedef vector<conf_node *> node_vector; |
66 | typedef vector<conf_node *> node_vector; |
74 | node_vector nodes; |
67 | node_vector nodes; |
… | |
… | |
85 | u8 ip_proto; // the ip protocol to use |
78 | u8 ip_proto; // the ip protocol to use |
86 | |
79 | |
87 | char *script_if_up; |
80 | char *script_if_up; |
88 | char *script_node_up; |
81 | char *script_node_up; |
89 | char *script_node_down; |
82 | char *script_node_down; |
|
|
83 | |
|
|
84 | #if ENABLE_HTTP_PROXY |
|
|
85 | char *proxy_auth; // login:password |
|
|
86 | char *proxy_host; // the proxy hostname, e.g. proxy1.example.net |
|
|
87 | u16 proxy_port; // the proxy port, e.g. 3128 |
|
|
88 | #endif |
90 | |
89 | |
91 | void init (); |
90 | void init (); |
92 | void cleanup (); |
91 | void cleanup (); |
93 | void read_config (bool need_keys); |
92 | void read_config (bool need_keys); |
94 | void clear_config (); |
93 | void clear_config (); |