]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ProtoPort.h
Cleanup: zap CVS Id tags
[thirdparty/squid.git] / src / ProtoPort.h
1 /*
2 * $Id$
3 */
4 #ifndef SQUID_PROTO_PORT_H
5 #define SQUID_PROTO_PORT_H
6
7 //#include "typedefs.h"
8 #include "cbdata.h"
9
10 struct http_port_list {
11 http_port_list(const char *aProtocol);
12 ~http_port_list();
13
14 http_port_list *next;
15
16 IpAddress s;
17 char *protocol; /* protocol name */
18 char *name; /* visible name */
19 char *defaultsite; /* default web site */
20
21 unsigned int intercepted:1; /**< intercepting proxy port */
22 unsigned int spoof_client_ip:1; /**< spoof client ip if possible */
23 unsigned int accel:1; /**< HTTP accelerator */
24 unsigned int vhost:1; /**< uses host header */
25 unsigned int sslBump:1; /**< intercepts CONNECT requests */
26
27 int vport; /* virtual port support, -1 for dynamic, >0 static*/
28 bool connection_auth_disabled; /* Don't support connection oriented auth */
29 int disable_pmtu_discovery;
30
31 struct {
32 unsigned int enabled;
33 unsigned int idle;
34 unsigned int interval;
35 unsigned int timeout;
36 } tcp_keepalive;
37
38 #if USE_SSL
39 // XXX: temporary hack to ease move of SSL options to http_port
40 http_port_list &http;
41
42 char *cert;
43 char *key;
44 int version;
45 char *cipher;
46 char *options;
47 char *clientca;
48 char *cafile;
49 char *capath;
50 char *crlfile;
51 char *dhfile;
52 char *sslflags;
53 char *sslcontext;
54 SSL_CTX *sslContext;
55 #endif
56
57 CBDATA_CLASS2(http_port_list);
58 };
59
60
61 #if USE_SSL
62
63 struct https_port_list: public http_port_list {
64 https_port_list();
65 };
66
67 #endif
68
69 #endif /* SQUID_PROTO_PORT_H */