/* get authed here */
/* Note: this fills in auth_user_request when applicable */
const AuthAclState result = AuthUserRequest::tryToAuthenticateAndSetAuthUser(
- &checklist->auth_user_request, headertype, request,
- checklist->conn(), checklist->src_addr);
+ &checklist->auth_user_request, headertype, request,
+ checklist->conn(), checklist->src_addr);
switch (result) {
case AUTH_ACL_CANNOT_AUTHENTICATE:
virtual const char * type() const = 0;
public:
- HelperChildConfig authenticateChildren;
+ HelperChildConfig authenticateChildren;
wordlist *authenticate;
};
* is recorded in the cache. Any caller using hash_remove_link
* must then delete the AuthUserHashPointer.
*/
-class AuthUserHashPointer : public hash_link {
+class AuthUserHashPointer : public hash_link
+{
/* first two items must be same as hash_link */
public:
config(aConfig),
ipcount(0),
expiretime(0),
- credentials_state(Unchecked),
+ credentials_state(Unchecked),
username_(NULL)
{
proxy_auth_list.head = proxy_auth_list.tail = NULL;
auth_user->ttl(),
static_cast<int32_t>(auth_user->expiretime - squid_curtime + Config.authenticateTTL),
auth_user->username()
- );
+ );
}
}
return;
}
- if (static_cast<AuthDigestConfig*>(AuthConfig::Find("digest"))->PostWorkaround && request->method != METHOD_GET) {
+ if (static_cast<AuthDigestConfig*>(AuthConfig::Find("digest"))->PostWorkaround && request->method != METHOD_GET) {
/* Ugly workaround for certain very broken browsers using the
* wrong method to calculate the request-digest on POST request.
* This should be deleted once Digest authentication becomes more
/* we've failed somewhere in authentication */
debugs(29, 9, HERE << "auth state negotiate failed. " << proxy_auth);
break;
- }
+ }
return;
}
cbdataReferenceDone(r->data);
authenticateStateFree(r);
return;
- }
+ }
if (!reply) {
debugs(29, DBG_IMPORTANT, "ERROR: Negotiate Authentication Helper '" << lastserver << "' crashed!.");
if (static_cast<AuthNTLMConfig*>(AuthConfig::Find("ntlm"))->authenticate == NULL) {
debugs(29, DBG_CRITICAL, "ERROR: NTLM Start: no NTLM program configured.");
handler(data, NULL);
- return;
+ return;
}
r = cbdataAlloc(authenticateStateData);
}
/* on reconfigure initialize new auth schemes for the new config. */
- if(reconfiguring) {
+ if (reconfiguring) {
InitAuthSchemes();
}
}
SQUIDCEXTERN char *peer_proxy_negotiate_auth(char *principal_name, char *proxy);
#endif
-/* call to ensure the auth component schemes exist. */
-SQUIDCEXTERN void InitAuthSchemes(void);
+ /* call to ensure the auth component schemes exist. */
+ SQUIDCEXTERN void InitAuthSchemes(void);
#endif /* SQUID_PROTOS_H */