From: Amos Jeffries Date: Sat, 31 Jan 2015 14:10:25 +0000 (-0800) Subject: Stop emitting (Proxy-)Authentication-Info for Negotiate X-Git-Tag: merge-candidate-3-v1~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8fd04de7b757db01f11b2ba8aa7d091e287b7b0;p=thirdparty%2Fsquid.git Stop emitting (Proxy-)Authentication-Info for Negotiate This header is not defined for use by RFC 4559, and there seem to be no clients actually using it. The syntax Squid was using to emit the details was also clashing with the syntax defined for use in Digest which is becoming the standardized ABNF syntax for the header in general. --- diff --git a/src/auth/negotiate/UserRequest.cc b/src/auth/negotiate/UserRequest.cc index 4ac86dcb86..baf605d60d 100644 --- a/src/auth/negotiate/UserRequest.cc +++ b/src/auth/negotiate/UserRequest.cc @@ -390,23 +390,3 @@ Auth::Negotiate::UserRequest::HandleReply(void *data, const Helper::Reply &reply r->handler(r->data); delete r; } - -void -Auth::Negotiate::UserRequest::addAuthenticationInfoHeader(HttpReply * rep, int accel) -{ - http_hdr_type type; - - if (!server_blob) - return; - - /* don't add to authentication error pages */ - if ((!accel && rep->sline.status() == Http::scProxyAuthenticationRequired) - || (accel && rep->sline.status() == Http::scUnauthorized)) - return; - - type = accel ? HDR_AUTHENTICATION_INFO : HDR_PROXY_AUTHENTICATION_INFO; - httpHeaderPutStrf(&rep->header, type, "Negotiate %s", server_blob); - - safe_free(server_blob); -} - diff --git a/src/auth/negotiate/UserRequest.h b/src/auth/negotiate/UserRequest.h index 73c9744dc2..12baeb5fd8 100644 --- a/src/auth/negotiate/UserRequest.h +++ b/src/auth/negotiate/UserRequest.h @@ -35,8 +35,6 @@ public: virtual void startHelperLookup(HttpRequest *request, AccessLogEntry::Pointer &al, AUTHCB *, void *); virtual const char *credentialsStr(); - virtual void addAuthenticationInfoHeader(HttpReply * rep, int accel); - virtual const char * connLastHeader(); /* we need to store the helper server between requests */