]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/basic/Scheme.cc
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
10 #include "auth/basic/Scheme.h"
14 /* for Auth::Config */
15 #include "auth/basic/auth_basic.h"
17 Auth::Scheme::Pointer
Auth::Basic::Scheme::_instance
= NULL
;
20 Auth::Basic::Scheme::GetInstance()
22 if (_instance
== NULL
) {
23 _instance
= new Auth::Basic::Scheme();
30 Auth::Basic::Scheme::type() const
36 Auth::Basic::Scheme::shutdownCleanup()
38 if (_instance
== NULL
)
42 debugs(29, DBG_CRITICAL
, "Shutdown: Basic authentication.");
46 Auth::Basic::Scheme::createConfig()
48 Auth::Basic::Config
*newCfg
= new Auth::Basic::Config
;
49 return dynamic_cast<Auth::Config
*>(newCfg
);