]> git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/ntlm/Config.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / auth / ntlm / Config.h
1 /*
2 * Copyright (C) 1996-2014 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 #include "auth/Config.h"
13 #include "auth/Gadgets.h"
14 #include "auth/UserRequest.h"
15 #include "helper/forward.h"
16
17 class HttpRequest;
18 class StoreEntry;
19
20 namespace Auth
21 {
22 namespace Ntlm
23 {
24
25 /** NTLM Authentication configuration data */
26 class Config : public Auth::Config
27 {
28 public:
29 Config();
30 virtual bool active() const;
31 virtual bool configured() const;
32 virtual Auth::UserRequest::Pointer decode(char const *proxy_auth, const char *requestRealm);
33 virtual void done();
34 virtual void rotateHelpers();
35 virtual bool dump(StoreEntry *, const char *, Auth::Config *) const;
36 virtual void fixHeader(Auth::UserRequest::Pointer, HttpReply *, http_hdr_type, HttpRequest *);
37 virtual void init(Auth::Config *);
38 virtual void parse(Auth::Config *, int, char *);
39 virtual void registerWithCacheManager(void);
40 virtual const char * type() const;
41
42 public:
43 int keep_alive;
44 };
45
46 } // namespace Ntlm
47 } // namespace Auth
48
49 extern statefulhelper *ntlmauthenticators;
50
51 #endif
52