]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/AtStep.cc
Log "-" instead of the made-up method "NONE". (#486)
[thirdparty/squid.git] / src / acl / AtStep.cc
CommitLineData
bbc27441 1/*
f6e9a3ee 2 * Copyright (C) 1996-2019 The Squid Software Foundation and contributors
bbc27441
AJ
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"
4eac3407 15#include "acl/FilledChecklist.h"
5d65362c 16#include "client_side.h"
d3dddfb5 17#include "http/Stream.h"
5d65362c 18#include "ssl/ServerBump.h"
5d65362c
CT
19
20int
4eac3407 21ACLAtStepStrategy::match (ACLData<Ssl::BumpStep> * &data, ACLFilledChecklist *checklist)
5d65362c 22{
e4f14091 23 Ssl::ServerBump *bump = NULL;
d0ef5e87
CT
24 if (checklist->conn() != NULL && (bump = checklist->conn()->serverBump()))
25 return data->match(bump->step);
26 else
27 return data->match(Ssl::bumpStep1);
5d65362c
CT
28 return 0;
29}
30
8693472e 31#endif /* USE_OPENSSL */
f53969cc 32