Config.h
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 #ifndef SQUID_SRC_AUTH_CONFIG_H
10 #define SQUID_SRC_AUTH_CONFIG_H
11 
12 #if USE_AUTH
13 
14 #include "acl/forward.h"
15 #include "auth/SchemeConfig.h"
16 #include "auth/SchemesConfig.h"
17 
18 namespace Auth
19 {
20 
21 class Config
22 {
23  explicit Config(const Config &) = delete;
24  explicit Config(const Config *) = delete;
25 
26 public:
27  Config() = default;
28  explicit Config(Config &&) = default;
30 
33 
35  std::vector<Auth::SchemesConfig> schemeLists;
36 
39 
42 
43  // TODO replace this directive with per-Scheme 'credentialsttl'
44  // and make Scheme::expirestime the real time-when-expires.
46  time_t credentialsTtl = 0;
47 
49  time_t ipTtl = 0;
50 };
51 
52 extern Auth::Config TheConfig;
53 
54 } // namespace Auth
55 
56 #endif /* USE_AUTH */
57 #endif /* SQUID_SRC_AUTH_CONFIG_H */
58 
#define assert(EX)
Definition: assert.h:17
Auth::ConfigVector schemes
set of auth_params directives
Definition: Config.h:32
std::vector< Auth::SchemeConfig * > ConfigVector
Definition: forward.h:23
acl_access * schemeAccess
the ACL list for auth_schemes directives
Definition: Config.h:38
Auth::Config TheConfig
Definition: stub_libauth.cc:21
time_t ipTtl
the authenticate_ip_ttl
Definition: Config.h:49
time_t garbageCollectInterval
the authenticate_cache_garbage_interval
Definition: Config.h:41
Config()=default
#define acl_access
Definition: forward.h:44
std::vector< Auth::SchemesConfig > schemeLists
set of auth_schemes directives
Definition: Config.h:35
time_t credentialsTtl
the authenticate_ttl
Definition: Config.h:46

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors