]>
Commit | Line | Data |
---|---|---|
94439e4e | 1 | /* |
bde978a6 | 2 | * Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
bbc27441 AJ |
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. | |
94439e4e | 7 | */ |
8 | ||
9 | #ifndef __AUTH_NTLM_H__ | |
10 | #define __AUTH_NTLM_H__ | |
bbc27441 | 11 | |
602d9612 | 12 | #include "auth/Config.h" |
3ad63615 | 13 | #include "auth/Gadgets.h" |
2d2b0bb7 | 14 | #include "auth/UserRequest.h" |
24438ec5 | 15 | #include "helper/forward.h" |
94439e4e | 16 | |
aa110616 AJ |
17 | class HttpRequest; |
18 | class StoreEntry; | |
f5691f9c | 19 | |
bb8909c3 A |
20 | namespace Auth |
21 | { | |
22 | namespace Ntlm | |
23 | { | |
62e76326 | 24 | |
372fccd6 AJ |
25 | /** NTLM Authentication configuration data */ |
26 | class Config : public Auth::Config | |
62e76326 | 27 | { |
f5691f9c | 28 | public: |
372fccd6 | 29 | Config(); |
f5691f9c | 30 | virtual bool active() const; |
31 | virtual bool configured() const; | |
d4806c91 | 32 | virtual Auth::UserRequest::Pointer decode(char const *proxy_auth, const char *requestRealm); |
f5691f9c | 33 | virtual void done(); |
0bcb6908 | 34 | virtual void rotateHelpers(); |
3616c90c | 35 | virtual bool dump(StoreEntry *, const char *, Auth::Config *) const; |
789217a2 | 36 | virtual void fixHeader(Auth::UserRequest::Pointer, HttpReply *, Http::HdrType, HttpRequest *); |
9f3d2b2e AJ |
37 | virtual void init(Auth::Config *); |
38 | virtual void parse(Auth::Config *, int, char *); | |
15fab853 | 39 | virtual void registerWithCacheManager(void); |
f5691f9c | 40 | virtual const char * type() const; |
372fccd6 AJ |
41 | |
42 | public: | |
6bf4f823 | 43 | int keep_alive; |
94439e4e | 44 | }; |
45 | ||
372fccd6 AJ |
46 | } // namespace Ntlm |
47 | } // namespace Auth | |
94439e4e | 48 | |
928f3421 AJ |
49 | extern statefulhelper *ntlmauthenticators; |
50 | ||
94439e4e | 51 | #endif |
f53969cc | 52 |