ExternalACLEntry.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 82 External ACL */
10
11#include "squid.h"
12#include "ExternalACLEntry.h"
13#include "time/gadgets.h"
14
15/******************************************************************
16 * external_acl cache
17 */
18
20 notes()
21{
22 lru.next = lru.prev = nullptr;
24 date = 0;
25 def = nullptr;
26}
27
29{
31}
32
33void
35{
37 result = someData.result;
38
39 // replace all notes. not combine
40 notes.clear();
41 notes.append(&someData.notes);
42
43#if USE_AUTH
44 user = someData.user;
45 password = someData.password;
46#endif
47 message = someData.message;
48 tag = someData.tag;
49 log = someData.log;
50}
51
time_t squid_curtime
Definition: stub_libtime.cc:20
NotePairs notes
list of all kv-pairs returned by the helper
external_acl * def
Acl::Answer result
NotePairs notes
list of all kv-pairs returned by the helper
~ExternalACLEntry() override
void update(ExternalACLEntryData const &)
void append(const NotePairs *src)
Append the entries of the src NotePairs list to our list.
Definition: Notes.cc:374
void clear()
Definition: Notes.h:255
@ ACCESS_DENIED
Definition: Acl.h:115
#define safe_free(x)
Definition: xalloc.h:73

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors