From: hno <> Date: Thu, 9 Jan 2003 18:38:59 +0000 (+0000) Subject: Indent X-Git-Tag: SQUID_3_0_PRE1~475 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4563d7b2e103f38cfe17f3ea3ad0bff65d58746a;p=thirdparty%2Fsquid.git Indent --- diff --git a/src/auth/ntlm/auth_ntlm.cc b/src/auth/ntlm/auth_ntlm.cc index 70c82f68b8..6921dbd784 100644 --- a/src/auth/ntlm/auth_ntlm.cc +++ b/src/auth/ntlm/auth_ntlm.cc @@ -1,6 +1,6 @@ /* - * $Id: auth_ntlm.cc,v 1.24 2002/10/15 09:25:35 robertc Exp $ + * $Id: auth_ntlm.cc,v 1.25 2003/01/09 11:38:59 hno Exp $ * * DEBUG: section 29 NTLM Authenticator * AUTHOR: Robert Collins @@ -152,7 +152,7 @@ authNTLMCfgDump(StoreEntry * entry, const char *name, authScheme * scheme) storeAppendPrintf(entry, "\n%s %s children %d\n%s %s max_challenge_reuses %d\n%s %s max_challenge_lifetime %d seconds\n", name, "ntlm", config->authenticateChildren, name, "ntlm", config->challengeuses, - name, "ntlm", (int)config->challengelifetime); + name, "ntlm", (int) config->challengelifetime); } @@ -250,10 +250,18 @@ authNTLMInit(authScheme * scheme) ntlmauthenticators->IsAvailable = authenticateNTLMHelperServerAvailable; ntlmauthenticators->OnEmptyQueue = authenticateNTLMHelperServerOnEmpty; helperStatefulOpenServers(ntlmauthenticators); - /* TODO: In here send the initial YR to preinitialise the challenge cache */ - /* Think about this... currently we ask when the challenge is needed. Better? */ + /* + * TODO: In here send the initial YR to preinitialise the + * challenge cache + */ + /* + * Think about this... currently we ask when the challenge + * is needed. Better? + */ if (!ntlminit) { - cachemgrRegister("ntlmauthenticator", "User NTLM Authenticator Stats", authenticateNTLMStats, 0, 1); + cachemgrRegister("ntlmauthenticator", + "NTLM User Authenticator Stats", + authenticateNTLMStats, 0, 1); ntlminit++; } CBDATA_INIT_TYPE(authenticateStateData); @@ -443,8 +451,9 @@ authenticateNTLMHandleReply(void *data, void *lastserver, char *reply) return S_HELPER_RELEASE; } if (!reply) { - /* TODO: this occurs when a helper crashes. We should clean up that helpers resources - * and queued requests. + /* + * TODO: this occurs when a helper crashes. We should clean + * up that helpers resources and queued requests. */ fatal("authenticateNTLMHandleReply: called with no result string\n"); } @@ -573,7 +582,7 @@ authenticateNTLMHandleReply(void *data, void *lastserver, char *reply) authenticateStateFree(r); debug(29, 9) ("NTLM HandleReply, telling stateful helper : %d\n", result); return result; - } + } /* the helper broke on a KK */ /* first the standard KK stuff */ debug(29, 4) ("authenticateNTLMHandleReply: Error validating user via NTLM. Error returned '%s'\n", reply); @@ -584,7 +593,7 @@ authenticateNTLMHandleReply(void *data, void *lastserver, char *reply) ntlm_request->auth_state = AUTHENTICATE_STATE_FAILED; } else { /* TODO: only work with auth_user here if it exists */ - /* TODO: take the request state into consideration */ + /* TODO: take the request state into consideration */ assert(r->auth_user_request != NULL); assert(r->auth_user_request->auth_user->auth_type == AUTH_NTLM); auth_user_request = r->auth_user_request; @@ -597,7 +606,7 @@ authenticateNTLMHandleReply(void *data, void *lastserver, char *reply) /* **** NOTE THIS CODE IS EFFECTIVELY UNTESTED **** */ /* restart the authentication process */ ntlm_request->auth_state = AUTHENTICATE_STATE_NONE; - assert (ntlm_request->authserver ? ntlm_request->authserver == lastserver : 1); + assert(ntlm_request->authserver ? ntlm_request->authserver == lastserver : 1); ntlm_request->authserver = NULL; } r->handler(r->data, NULL);