]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/AtStep.cc
SSL Peek and Splice
[thirdparty/squid.git] / src / acl / AtStep.cc
1 #include "squid.h"
2
3 #if USE_OPENSSL
4
5 #include "acl/Checklist.h"
6 #include "acl/AtStep.h"
7 #include "acl/AtStepData.h"
8 #include "client_side.h"
9 #include "ssl/ServerBump.h"
10
11 int
12 ACLAtStepStrategy::match (ACLData<Ssl::BumpStep> * &data, ACLFilledChecklist *checklist, ACLFlags &)
13 {
14 Ssl::ServerBump *bump = NULL;
15 if (checklist->conn() != NULL && (bump = checklist->conn()->serverBump()))
16 return data->match(bump->step);
17 else
18 return data->match(Ssl::bumpStep1);
19 return 0;
20 }
21
22 ACLAtStepStrategy *
23 ACLAtStepStrategy::Instance()
24 {
25 return &Instance_;
26 }
27
28 ACLAtStepStrategy ACLAtStepStrategy::Instance_;
29
30 #endif /* USE_OPENSSL */