]>
Commit | Line | Data |
---|---|---|
bbc27441 AJ |
1 | /* |
2 | * Copyright (C) 1996-2014 The Squid Software Foundation and contributors | |
3 | * | |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
5d65362c | 9 | #include "squid.h" |
8693472e CT |
10 | |
11 | #if USE_OPENSSL | |
12 | ||
8693472e CT |
13 | #include "acl/AtStep.h" |
14 | #include "acl/AtStepData.h" | |
40f1e76d | 15 | #include "acl/Checklist.h" |
5d65362c CT |
16 | #include "client_side.h" |
17 | #include "ssl/ServerBump.h" | |
5d65362c CT |
18 | |
19 | int | |
20 | ACLAtStepStrategy::match (ACLData<Ssl::BumpStep> * &data, ACLFilledChecklist *checklist, ACLFlags &) | |
21 | { | |
e4f14091 | 22 | Ssl::ServerBump *bump = NULL; |
d0ef5e87 CT |
23 | if (checklist->conn() != NULL && (bump = checklist->conn()->serverBump())) |
24 | return data->match(bump->step); | |
25 | else | |
26 | return data->match(Ssl::bumpStep1); | |
5d65362c CT |
27 | return 0; |
28 | } | |
29 | ||
30 | ACLAtStepStrategy * | |
31 | ACLAtStepStrategy::Instance() | |
32 | { | |
33 | return &Instance_; | |
34 | } | |
35 | ||
36 | ACLAtStepStrategy ACLAtStepStrategy::Instance_; | |
8693472e CT |
37 | |
38 | #endif /* USE_OPENSSL */ |