]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (C) 1996-2018 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 __AUTH_NTLM_H__ | |
10 | #define __AUTH_NTLM_H__ | |
11 | ||
12 | #if HAVE_AUTH_MODULE_NTLM | |
13 | ||
14 | #include "auth/Gadgets.h" | |
15 | #include "auth/SchemeConfig.h" | |
16 | #include "auth/UserRequest.h" | |
17 | #include "helper/forward.h" | |
18 | ||
19 | class HttpRequest; | |
20 | class StoreEntry; | |
21 | ||
22 | namespace Auth | |
23 | { | |
24 | namespace Ntlm | |
25 | { | |
26 | ||
27 | /** NTLM Authentication configuration data */ | |
28 | class Config : public Auth::SchemeConfig | |
29 | { | |
30 | public: | |
31 | virtual bool active() const; | |
32 | virtual bool configured() const; | |
33 | virtual Auth::UserRequest::Pointer decode(char const *proxy_auth, const char *requestRealm); | |
34 | virtual void done(); | |
35 | virtual void rotateHelpers(); | |
36 | virtual void fixHeader(Auth::UserRequest::Pointer, HttpReply *, Http::HdrType, HttpRequest *); | |
37 | virtual void init(Auth::SchemeConfig *); | |
38 | virtual void registerWithCacheManager(void); | |
39 | virtual const char * type() const; | |
40 | }; | |
41 | ||
42 | } // namespace Ntlm | |
43 | } // namespace Auth | |
44 | ||
45 | extern statefulhelper *ntlmauthenticators; | |
46 | ||
47 | #endif /* HAVE_AUTH_MODULE_NTLM */ | |
48 | #endif | |
49 |