]> git.pld-linux.org Git - packages/squid.git/blame - squid-3.0.PRE3-ssl-session-reuse.patch
- add squid-2.5.STABLE5-range_offset_limit.patch patch; rel 2
[packages/squid.git] / squid-3.0.PRE3-ssl-session-reuse.patch
CommitLineData
36aa8c36
JR
1Index: squid3/src/forward.cc
2diff -c squid3/src/forward.cc:1.111 squid3/src/forward.cc:1.112
3*** squid3/src/forward.cc:1.111 Sat Aug 16 14:33:47 2003
4--- squid3/src/forward.cc Mon Aug 18 06:24:45 2003
5***************
6*** 314,319 ****
7--- 314,326 ----
8 }
9 }
10
11+ if (fs->_peer && !SSL_session_reused(ssl)) {
12+ if (fs->_peer->sslSession)
13+ SSL_SESSION_free(fs->_peer->sslSession);
14+
15+ fs->_peer->sslSession = SSL_get1_session(ssl);
16+ }
17+
18 fwdDispatch(fwdState);
19 }
20
21***************
22*** 362,367 ****
23--- 369,378 ----
24
25 else
26 SSL_set_ex_data(ssl, ssl_ex_index_server, peer->host);
27+
28+ if (peer->sslSession)
29+ SSL_set_session(ssl, peer->sslSession);
30+
31 } else {
32 SSL_set_ex_data(ssl, ssl_ex_index_server, fwdState->request->host);
33 }
34Index: squid3/src/structs.h
35diff -c squid3/src/structs.h:1.479 squid3/src/structs.h:1.480
36*** squid3/src/structs.h:1.479 Tue Aug 12 18:17:26 2003
37--- squid3/src/structs.h Mon Aug 18 06:24:45 2003
38***************
39*** 1383,1388 ****
40--- 1383,1389 ----
41 char *sslflags;
42 char *ssldomain;
43 SSL_CTX *sslContext;
44+ SSL_SESSION *sslSession;
45 #endif
46
47 int front_end_https;
This page took 0.047747 seconds and 4 git commands to generate.