ExternalACLEntry.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 "SquidTime.h"
14 
15 /******************************************************************
16  * external_acl cache
17  */
18 
20  notes()
21 {
22  lru.next = lru.prev = NULL;
24  date = 0;
25  def = NULL;
26 }
27 
29 {
30  safe_free(key);
31 }
32 
33 void
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 
#define safe_free(x)
Definition: xalloc.h:73
external_acl * def
time_t squid_curtime
Definition: stub_time.cc:17
void clear()
Definition: Notes.h:244
NotePairs notes
list of all kv-pairs returned by the helper
NotePairs notes
list of all kv-pairs returned by the helper
void update(ExternalACLEntryData const &)
void append(const NotePairs *src)
Append the entries of the src NotePairs list to our list.
Definition: Notes.cc:340
#define NULL
Definition: types.h:166

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors