]> git.ipfire.org Git - thirdparty/squid.git/blame - src/auth/State.h
Boilerplate: update copyright blurbs on Squid helpers
[thirdparty/squid.git] / src / auth / State.h
CommitLineData
928f3421
AJ
1#ifndef __AUTH_AUTHENTICATE_STATE_T__
2#define __AUTH_AUTHENTICATE_STATE_T__
3
2f1431ea
AJ
4#if USE_AUTH
5
928f3421 6#include "auth/UserRequest.h"
1c756645 7#include "cbdata.h"
e166785a 8#include "helper.h"
1c756645
AJ
9
10namespace Auth
11{
928f3421 12
928f3421
AJ
13/**
14 * CBDATA state for NTLM, Negotiate, and Digest stateful authentication.
15 */
a9336c23
A
16class StateData
17{
1c756645 18public:
4c535e87 19 StateData(const UserRequest::Pointer &r, AUTHCB *h, void *d) :
a9336c23
A
20 data(cbdataReference(d)),
21 auth_user_request(r),
22 handler(h) {}
1c756645
AJ
23
24 ~StateData() {
25 auth_user_request = NULL;
26 cbdataReferenceDone(data);
27 }
28
928f3421 29 void *data;
c7baff40 30 UserRequest::Pointer auth_user_request;
4c535e87 31 AUTHCB *handler;
928f3421 32
1c756645
AJ
33private:
34 CBDATA_CLASS2(StateData);
35};
928f3421 36
1c756645 37} // namespace Auth
928f3421 38
2f1431ea 39#endif /* USE_AUTH */
928f3421 40#endif /* __AUTH_AUTHENTICATE_STATE_T__ */