From: Automatic source maintenance Date: Tue, 29 Jun 2010 00:12:44 +0000 (-0600) Subject: SourceFormat Enforcement X-Git-Tag: SQUID_3_2_0_1~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9da8dd5ce5e18bfa3781c16f450ed72ae84ccef9;p=thirdparty%2Fsquid.git SourceFormat Enforcement --- diff --git a/helpers/ntlm_auth/SSPI/ntlm_sspi_auth.cc b/helpers/ntlm_auth/SSPI/ntlm_sspi_auth.cc index d047e617bc..0d7739b3cb 100644 --- a/helpers/ntlm_auth/SSPI/ntlm_sspi_auth.cc +++ b/helpers/ntlm_auth/SSPI/ntlm_sspi_auth.cc @@ -490,35 +490,35 @@ try_again: plen = (strlen(buf) - 3) * 3 / 4; /* we only need it here. Optimization */ else plen = sizeof(ntlmhdr) + sizeof u_int32_t); /* local_nego only has header and flags set. */ - debug("attempting SSPI challenge retrieval\n"); - if ((c = (char *) SSP_MakeChallenge((ntlm_negotiate *) decoded, plen)) != NULL ) { - if (NTLM_packet_debug_enabled) { - printf("TT %s\n",c); - decoded = base64_decode(c); - debug("sending 'TT' to squid with data:\n"); - hex_dump(decoded, (strlen(c) * 3) / 4); - if (NTLM_LocalCall) - debug("NTLM Local Call detected\n"); - } else { - SEND2("TT %s", c); - } - have_challenge = 1; - } else - helperfail("can't obtain challenge"); - return 1; - /* notreached */ - case NTLM_CHALLENGE: - SEND("NA Got a challenge. We refuse to have our authority disputed"); - return 1; - /* notreached */ - case NTLM_AUTHENTICATE: - SEND("NA Got authentication request instead of negotiate request"); - return 1; - /* notreached */ - default: - helperfail("unknown refresh-request packet type"); - return 1; - } + debug("attempting SSPI challenge retrieval\n"); + if ((c = (char *) SSP_MakeChallenge((ntlm_negotiate *) decoded, plen)) != NULL ) { + if (NTLM_packet_debug_enabled) { + printf("TT %s\n",c); + decoded = base64_decode(c); + debug("sending 'TT' to squid with data:\n"); + hex_dump(decoded, (strlen(c) * 3) / 4); + if (NTLM_LocalCall) + debug("NTLM Local Call detected\n"); + } else { + SEND2("TT %s", c); + } + have_challenge = 1; + } else + helperfail("can't obtain challenge"); + return 1; + /* notreached */ + case NTLM_CHALLENGE: + SEND("NA Got a challenge. We refuse to have our authority disputed"); + return 1; + /* notreached */ + case NTLM_AUTHENTICATE: + SEND("NA Got authentication request instead of negotiate request"); + return 1; + /* notreached */ + default: + helperfail("unknown refresh-request packet type"); + return 1; + } return 1; } if (memcmp(buf, "KK ", 3) == 0) { /* authenticate-request */