From: Automatic source maintenance Date: Tue, 3 May 2011 00:12:39 +0000 (-0600) Subject: SourceFormat Enforcement X-Git-Tag: take07~16^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ad9b9e2b5269f53fb3ec9aa59e73cbd8f924f2;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 0ef1340e24..857f80f171 100644 --- a/helpers/ntlm_auth/SSPI/ntlm_sspi_auth.cc +++ b/helpers/ntlm_auth/SSPI/ntlm_sspi_auth.cc @@ -485,36 +485,36 @@ try_again: switch (fast_header->type) { case NTLM_NEGOTIATE: /* Obtain challenge against SSPI */ - debug("attempting SSPI challenge retrieval\n"); - if ((c = (char *) SSP_MakeChallenge((ntlm_negotiate *) decoded, decodedLen)) != NULL ) { - if (NTLM_packet_debug_enabled) { - printf("TT %s\n",c); - decodedLen = base64_decode(decoded, sizeof(decoded), c); - debug("sending 'TT' to squid with data:\n"); - hex_dump(decoded, decodedLen); - if (NTLM_LocalCall) - debug("NTLM Local Call detected\n"); - } else { - SEND2("TT %s", c); - } - have_challenge = 1; - } else - helperfail("can't obtain challenge"); + debug("attempting SSPI challenge retrieval\n"); + if ((c = (char *) SSP_MakeChallenge((ntlm_negotiate *) decoded, decodedLen)) != NULL ) { + if (NTLM_packet_debug_enabled) { + printf("TT %s\n",c); + decodedLen = base64_decode(decoded, sizeof(decoded), c); + debug("sending 'TT' to squid with data:\n"); + hex_dump(decoded, decodedLen); + 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; + /* 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 */