stub_libauth.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2021 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 "tests/STUB.h"
13 
14 #if USE_AUTH
15 #include "auth/SchemeConfig.h"
16 namespace Auth
17 {
22 }
23 
24 #include "auth/Gadgets.h"
28 void authenticateRotate(void) STUB
29 void authenticateReset(void) STUB
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
66 int authenticateAuthUserRequestIPCount(Auth::UserRequest::Pointer) STUB_RETVAL(0)
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 
HTTP Authentication.
Definition: Config.h:19
#define STUB_RETVAL(x)
Definition: STUB.h:41
static std::vector< Scheme::Pointer > * _Schemes
Definition: Scheme.h:70
static void AddScheme(Scheme::Pointer)
Definition: Scheme.cc:20
static void authenticate(int socket_fd, const char *username, const char *passwd)
void authenticateInit(Auth::ConfigVector *config)
Definition: Gadgets.cc:70
std::vector< Auth::SchemeConfig * > ConfigVector
Definition: forward.h:23
AuthAclState
Definition: AuthAclState.h:14
@ AUTH_AUTHENTICATED
Definition: AuthAclState.h:18
Auth::Config TheConfig
Definition: Config.cc:15
Definition: forward.h:22
Direction
Definition: UserRequest.h:64
void authenticateRotate(void)
Definition: Gadgets.cc:85
static SchemeConfig * Find(const char *proxy_auth)
Definition: SchemeConfig.cc:59
void authenticateAuthUserRequestRemoveIp(Auth::UserRequest::Pointer auth_user_request, Ip::Address const &ipaddr)
Definition: UserRequest.cc:147
#define NULL
Definition: types.h:166
int authenticateUserAuthenticated(Auth::UserRequest::Pointer auth_user_request)
Definition: UserRequest.cc:176
@ CRED_ERROR
ERROR in the auth module. Cannot determine the state of this request.
Definition: UserRequest.h:68
User(Auth::SchemeConfig *, const char *requestRealm)
Definition: User.cc:24
#define STUB
macro to stub a void function.
Definition: STUB.h:33
int authenticateAuthUserRequestIPCount(Auth::UserRequest::Pointer auth_user_request)
Definition: UserRequest.cc:165
static std::vector< Scheme::Pointer > & GetSchemes()
Definition: Scheme.cc:44
Definition: client_db.h:23
int authenticateSchemeCount(void)
Definition: Gadgets.cc:53
static UserRequest::Pointer CreateAuthUser(const char *proxy_auth, AccessLogEntry::Pointer &al)
Definition: SchemeConfig.cc:33
#define STUB_NOP
Definition: STUB.h:37
void authenticateReset(void)
Definition: Gadgets.cc:94
static char credentials[MAX_USERNAME_LEN+MAX_DOMAIN_LEN+2]
char const * username() const
Definition: UserRequest.cc:32
int authenticateActiveSchemeCount(void)
Definition: Gadgets.cc:38
static Scheme::Pointer Find(const char *)
Definition: Scheme.cc:33
CredentialState credentials() const
Definition: User.cc:39
virtual void registerWithCacheManager(void)
Definition: SchemeConfig.cc:80
void AUTHCB(void *)
Definition: UserRequest.h:57
void authenticateAuthUserRequestClearIp(Auth::UserRequest::Pointer auth_user_request)
Definition: UserRequest.cc:158
#define false
Definition: GnuRegex.c:233
void Init(void)
Initialize Auth subsystem.
Definition: AuthReg.cc:34
int unsigned int
Definition: stub_fd.cc:19

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors