ConnectionsEncrypted.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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
9/* DEBUG: section 28 Access Control */
10
11#include "squid.h"
13#include "acl/FilledChecklist.h"
14#include "debug/Stream.h"
15#include "HttpReply.h"
16#include "HttpRequest.h"
17#include "SquidConfig.h"
18
19Acl::ConnectionsEncrypted::ConnectionsEncrypted (char const *theClass) : class_ (theClass)
20{}
21
23{}
24
25char const *
27{
28 return class_;
29}
30
31bool
33{
34 return false;
35}
36
37void
39{
41 debugs(89, DBG_CRITICAL, "WARNING: connections_encrypted does not accept any value.");
42 }
43}
44
45int
47{
48 if (!checklist->hasRequest()) {
49 debugs(28, DBG_IMPORTANT, "WARNING: " << name << " ACL is used in " <<
50 "context without an HTTP request. Assuming mismatch.");
51 return 0;
52 }
53
54 ACLFilledChecklist *filled = Filled((ACLChecklist*)checklist);
55
56 const bool safeRequest =
58 const bool safeReply = !filled->reply ||
60
61 return (safeRequest && safeReply) ? 1 : 0;
62}
63
66{
67 return SBufList();
68}
69
ACLFilledChecklist * Filled(ACLChecklist *checklist)
convenience and safety wrapper for dynamic_cast<ACLFilledChecklist*>
virtual bool hasRequest() const =0
HttpRequest::Pointer request
int match(ACLChecklist *checklist) override
Matches the actual data in checklist against this ACL.
void parse() override
parses node representation in squid.conf; dies on failures
bool empty() const override
SBufList dump() const override
char const * typeString() const override
static char * strtokFile()
Definition: ConfigParser.cc:65
@ srcUnsafe
Unsafe sources mask.
Definition: Message.h:44
uint32_t sources
The message sources.
Definition: Message.h:99
#define DBG_IMPORTANT
Definition: Stream.h:38
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Stream.h:194
#define DBG_CRITICAL
Definition: Stream.h:37
std::list< SBuf > SBufList
Definition: forward.h:23

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors