]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/basic/auth_basic.h
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.
11 * Internal declarations for the basic auth module
14 #ifndef __AUTH_BASIC_H__
15 #define __AUTH_BASIC_H__
17 #include "auth/Config.h"
18 #include "auth/Gadgets.h"
19 #include "auth/UserRequest.h"
22 #define DefaultAuthenticateChildrenMax 32 /* 32 processes */
29 /** Basic authentication configuration data */
30 class Config
: public Auth::Config
34 virtual bool active() const;
35 virtual bool configured() const;
36 virtual Auth::UserRequest::Pointer
decode(char const *proxy_auth
, const char *requestRealm
);
38 virtual void rotateHelpers();
39 virtual bool dump(StoreEntry
*, const char *, Auth::Config
*) const;
40 virtual void fixHeader(Auth::UserRequest::Pointer
, HttpReply
*, http_hdr_type
, HttpRequest
*);
41 virtual void init(Auth::Config
*);
42 virtual void parse(Auth::Config
*, int, char *);
43 void decode(char const *httpAuthHeader
, Auth::UserRequest::Pointer
);
44 virtual void registerWithCacheManager(void);
45 virtual const char * type() const;
48 time_t credentialsTTL
;
53 char * decodeCleartext(const char *httpAuthHeader
);
59 extern helper
*basicauthenticators
;
61 #endif /* __AUTH_BASIC_H__ */