Scheme.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 #include "squid.h"
10 #include "auth/digest/Config.h"
11 #include "auth/digest/Scheme.h"
12 #include "Debug.h"
13 #include "globals.h"
14 #include "helper.h"
15 
16 Auth::Scheme::Pointer Auth::Digest::Scheme::_instance = NULL;
17 
19 Auth::Digest::Scheme::GetInstance()
20 {
21  if (_instance == NULL) {
22  _instance = new Auth::Digest::Scheme();
23  AddScheme(_instance);
24  }
25  return _instance;
26 }
27 
28 char const *
30 {
31  return "digest";
32 }
33 
34 void
35 Auth::Digest::Scheme::shutdownCleanup()
36 {
37  if (_instance == NULL)
38  return;
39 
41 
42  _instance = NULL;
43  debugs(29, DBG_CRITICAL, "Shutdown: Digest authentication.");
44 }
45 
47 Auth::Digest::Scheme::createConfig()
48 {
50  return dynamic_cast<Auth::SchemeConfig*>(digestCfg);
51 }
52 
int type
Definition: errorpage.cc:79
#define DBG_CRITICAL
Definition: Debug.h:44
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Debug.h:123
void authenticateDigestNonceShutdown(void)
Definition: Config.cc:223
class SquidConfig Config
Definition: SquidConfig.cc:12
#define NULL
Definition: types.h:166

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors