stub_libauth.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 #include "squid.h"
10 
11 #define STUB_API "auth/libauth.la"
12 #include "STUB.h"
13 
14 #if USE_AUTH
15 #include "auth/SchemeConfig.h"
16 namespace Auth
17 {
22 }
23 
24 #include "auth/Gadgets.h"
30 
31 #include "auth/Scheme.h"
32 #include <vector>
33 std::vector<Auth::Scheme::Pointer> *Auth::Scheme::_Schemes = NULL;
36 std::vector<Auth::Scheme::Pointer> & Auth::Scheme::GetSchemes() STUB_RETVAL(*_Schemes);
37 void Auth::Scheme::FreeAll() STUB
38 
39 #include "auth/SchemesConfig.h"
41 
42 #include "auth/User.h"
46 void Auth::User::absorb(Auth::User::Pointer) STUB
47 Auth::User::~User() STUB_NOP
48 void Auth::User::clearIp() STUB
49 void Auth::User::removeIp(Ip::Address) STUB
50 void Auth::User::addIp(Ip::Address) STUB
51 void Auth::User::CredentialsCacheStats(StoreEntry *) STUB
52 
53 #include "auth/UserRequest.h"
54 char const * Auth::UserRequest::username() const STUB_RETVAL("stub_username")
55 void Auth::UserRequest::start(HttpRequest *, AccessLogEntry::Pointer &, AUTHCB *, void *) STUB
56 bool Auth::UserRequest::valid() const STUB_RETVAL(false)
57 void * Auth::UserRequest::operator new (size_t) STUB_RETVAL((void *)1)
58 void Auth::UserRequest::operator delete (void *) STUB
59 Auth::UserRequest::UserRequest() STUB
60 Auth::UserRequest::~UserRequest() STUB
61 void Auth::UserRequest::setDenyMessage(char const *) STUB
62 char const * Auth::UserRequest::getDenyMessage() const STUB_RETVAL("stub")
63 char const * Auth::UserRequest::denyMessage(char const * const) const STUB_RETVAL("stub")
64 void authenticateAuthUserRequestRemoveIp(Auth::UserRequest::Pointer, Ip::Address const &) STUB
65 void authenticateAuthUserRequestClearIp(Auth::UserRequest::Pointer) STUB
67 int authenticateUserAuthenticated(Auth::UserRequest::Pointer) STUB_RETVAL(0)
68 Auth::Direction Auth::UserRequest::direction() STUB_RETVAL(Auth::CRED_ERROR)
69 void Auth::UserRequest::addAuthenticationInfoHeader(HttpReply *, int) STUB
70 void Auth::UserRequest::addAuthenticationInfoTrailer(HttpReply *, int) STUB
71 void Auth::UserRequest::releaseAuthServer() STUB
72 const char * Auth::UserRequest::connLastHeader() STUB_RETVAL("stub")
73 AuthAclState Auth::UserRequest::authenticate(Auth::UserRequest::Pointer *, Http::HdrType, HttpRequest *, ConnStateData *, Ip::Address &, AccessLogEntry::Pointer &) STUB_RETVAL(AUTH_AUTHENTICATED)
74 AuthAclState Auth::UserRequest::tryToAuthenticateAndSetAuthUser(Auth::UserRequest::Pointer *, Http::HdrType, HttpRequest *, ConnStateData *, Ip::Address &, AccessLogEntry::Pointer &) STUB_RETVAL(AUTH_AUTHENTICATED)
75 void Auth::UserRequest::AddReplyAuthHeader(HttpReply *, Auth::UserRequest::Pointer, HttpRequest *, int, int) STUB
76 Auth::Scheme::Pointer Auth::UserRequest::scheme() const STUB_RETVAL(NULL)
77 
78 #include "AuthReg.h"
79 void Auth::Init() STUB_NOP
80 
81 #endif /* USE_AUTH */
82 
void authenticateInit(Auth::ConfigVector *)
Definition: stub_libauth.cc:27
void authenticateAuthUserRequestRemoveIp(Auth::UserRequest::Pointer, Ip::Address const &)
Definition: stub_libauth.cc:64
void authenticateAuthUserRequestClearIp(Auth::UserRequest::Pointer)
Definition: stub_libauth.cc:65
Definition: client_db.h:22
static std::vector< Scheme::Pointer > & GetSchemes()
Definition: Scheme.cc:44
int authenticateSchemeCount(void)
Definition: stub_libauth.cc:26
static void authenticate(int socket_fd, const char *username, const char *passwd)
AuthAclState
Definition: AuthAclState.h:14
User(Auth::SchemeConfig *, const char *requestRealm)
Definition: User.cc:24
void authenticateRotate(void)
Definition: stub_libauth.cc:28
int authenticateActiveSchemeCount(void)
Definition: stub_libauth.cc:25
int authenticateUserAuthenticated(Auth::UserRequest::Pointer)
Definition: stub_libauth.cc:67
Direction
Definition: UserRequest.h:64
std::vector< Auth::SchemeConfig * > ConfigVector
Definition: forward.h:23
CredentialState credentials() const
Definition: User.cc:39
char const * username() const
Definition: UserRequest.cc:32
void authenticateReset(void)
Definition: stub_libauth.cc:29
void Init(void)
Initialize Auth subsystem.
Definition: AuthReg.cc:34
#define STUB_RETVAL(x)
Definition: STUB.h:41
ERROR in the auth module. Cannot determine the state of this request.
Definition: UserRequest.h:68
#define STUB
macro to stub a void function.
Definition: STUB.h:33
static Scheme::Pointer Find(const char *)
Definition: Scheme.cc:33
Auth::Config TheConfig
Definition: stub_libauth.cc:21
static SchemeConfig * Find(const char *proxy_auth)
Definition: SchemeConfig.cc:58
static UserRequest::Pointer CreateAuthUser(const char *proxy_auth, AccessLogEntry::Pointer &al)
Definition: SchemeConfig.cc:32
int authenticateAuthUserRequestIPCount(Auth::UserRequest::Pointer)
Definition: stub_libauth.cc:66
static void AddScheme(Scheme::Pointer)
Definition: Scheme.cc:20
static char credentials[MAX_USERNAME_LEN+MAX_DOMAIN_LEN+2]
HTTP Authentication.
Definition: Config.h:18
#define STUB_NOP
Definition: STUB.h:37
Definition: forward.h:21
#define NULL
Definition: types.h:166
#define false
Definition: GnuRegex.c:233
virtual void registerWithCacheManager(void)
Definition: SchemeConfig.cc:79

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors