… | |
… | |
19 | #ifndef VPE_CONNECTION_H__ |
19 | #ifndef VPE_CONNECTION_H__ |
20 | #define VPE_CONNECTION_H__ |
20 | #define VPE_CONNECTION_H__ |
21 | |
21 | |
22 | #include <netinet/ip.h> // for tos etc. |
22 | #include <netinet/ip.h> // for tos etc. |
23 | |
23 | |
24 | #include <openssl/rand.h> |
|
|
25 | #include <openssl/hmac.h> |
24 | #include <openssl/hmac.h> |
26 | #include <openssl/evp.h> |
|
|
27 | #include <openssl/rsa.h> |
|
|
28 | #include <openssl/err.h> |
|
|
29 | |
25 | |
30 | #include "global.h" |
26 | #include "global.h" |
31 | #include "conf.h" |
27 | #include "conf.h" |
32 | #include "sockinfo.h" |
28 | #include "sockinfo.h" |
33 | #include "util.h" |
29 | #include "util.h" |
… | |
… | |
157 | |
153 | |
158 | void send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = IPTOS_RELIABILITY); |
154 | void send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = IPTOS_RELIABILITY); |
159 | void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); |
155 | void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); |
160 | |
156 | |
161 | void script_node (); |
157 | void script_node (); |
162 | const char *script_node_up (int); |
158 | const char *script_node_up (); |
163 | const char *script_node_down (int); |
159 | const char *script_node_down (); |
164 | |
160 | |
165 | void dump_status (); |
161 | void dump_status (); |
166 | |
162 | |
167 | connection(struct vpn *vpn_); |
163 | connection(struct vpn *vpn_); |
168 | ~connection (); |
164 | ~connection (); |