]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/Gadgets.h
2 * Copyright (C) 1996-2023 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.
9 #ifndef SQUID_SRC_AUTH_GADGETS_H
10 #define SQUID_SRC_AUTH_GADGETS_H
14 #include "auth/User.h"
20 // TODO this should be a generic cachemgr API type ?
21 typedef void AUTHSSTATS(StoreEntry
*);
24 void authenticateInit(Auth::ConfigVector
*);
27 * Remove all idle authentication state. Intended for use by reconfigure.
29 * Removes the username cache contents and global configuration state.
30 * Stops just short of detaching the auth components completely.
32 * Currently active requests should finish. Howevee new requests will not use
33 * authentication unless something causes the global config to be rebuilt.
34 * Such as a configure load action adding config and re-running authenticateInit().
36 void authenticateReset(void);
38 void authenticateRotate(void);
41 void authenticateFreeProxyAuthUserACLResults(void *data
);
43 int authenticateActiveSchemeCount(void);
45 int authenticateSchemeCount(void);
48 void authenticateOnCloseConnection(ConnStateData
* conn
);
50 std::vector
<Auth::User::Pointer
> authenticateCachedUsersList();
53 #endif /* SQUID_SRC_AUTH_GADGETS_H */