]>
Commit | Line | Data |
---|---|---|
94439e4e | 1 | /* |
2 | * auth_ntlm.h | |
3 | * Internal declarations for the ntlm auth module | |
4 | */ | |
5 | ||
6 | #ifndef __AUTH_NTLM_H__ | |
7 | #define __AUTH_NTLM_H__ | |
602d9612 | 8 | #include "auth/Config.h" |
3ad63615 | 9 | #include "auth/Gadgets.h" |
2d2b0bb7 | 10 | #include "auth/UserRequest.h" |
aa839030 | 11 | #include "helper.h" |
94439e4e | 12 | |
13 | #define DefaultAuthenticateChildrenMax 32 /* 32 processes */ | |
14 | ||
aa110616 AJ |
15 | class HttpRequest; |
16 | class StoreEntry; | |
f5691f9c | 17 | |
bb8909c3 A |
18 | namespace Auth |
19 | { | |
20 | namespace Ntlm | |
21 | { | |
62e76326 | 22 | |
372fccd6 AJ |
23 | /** NTLM Authentication configuration data */ |
24 | class Config : public Auth::Config | |
62e76326 | 25 | { |
f5691f9c | 26 | public: |
372fccd6 | 27 | Config(); |
f5691f9c | 28 | virtual bool active() const; |
29 | virtual bool configured() const; | |
c7baff40 | 30 | virtual Auth::UserRequest::Pointer decode(char const *proxy_auth); |
f5691f9c | 31 | virtual void done(); |
0bcb6908 | 32 | virtual void rotateHelpers(); |
9f3d2b2e | 33 | virtual void dump(StoreEntry *, const char *, Auth::Config *); |
c7baff40 | 34 | virtual void fixHeader(Auth::UserRequest::Pointer, HttpReply *, http_hdr_type, HttpRequest *); |
9f3d2b2e AJ |
35 | virtual void init(Auth::Config *); |
36 | virtual void parse(Auth::Config *, int, char *); | |
15fab853 | 37 | virtual void registerWithCacheManager(void); |
f5691f9c | 38 | virtual const char * type() const; |
372fccd6 AJ |
39 | |
40 | public: | |
6bf4f823 | 41 | int keep_alive; |
94439e4e | 42 | }; |
43 | ||
372fccd6 AJ |
44 | } // namespace Ntlm |
45 | } // namespace Auth | |
94439e4e | 46 | |
928f3421 AJ |
47 | extern statefulhelper *ntlmauthenticators; |
48 | ||
94439e4e | 49 | #endif |