]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ProtoPort.cc
Importing SslBump feature from Squid3 ssl-bump branch:
[thirdparty/squid.git] / src / ProtoPort.cc
1
2 /*
3 * $Id: ProtoPort.cc,v 1.1 2008/02/11 22:24:39 rousskov Exp $
4 *
5 */
6
7 #include "squid.h"
8 #include "ProtoPort.h"
9
10 http_port_list::http_port_list(const char *aProtocol)
11 #if USE_SSL
12 : http(*this)
13 #endif
14 {
15 protocol = xstrdup(aProtocol);
16 }
17
18 http_port_list::~http_port_list()
19 {
20 safe_free(name);
21 safe_free(defaultsite);
22 safe_free(protocol);
23
24 #if USE_SSL
25 safe_free(cert);
26 safe_free(key);
27 safe_free(options);
28 safe_free(cipher);
29 safe_free(cafile);
30 safe_free(capath);
31 safe_free(dhfile);
32 safe_free(sslflags);
33 #endif
34 }
35
36
37 #if USE_SSL
38
39 https_port_list::https_port_list(): http_port_list("https")
40 {
41 }
42
43 #endif