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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors