]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SslBump: Support bump-ssl-server-first / fix build errors
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 18 Jul 2012 20:20:34 +0000 (23:20 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 18 Jul 2012 20:20:34 +0000 (23:20 +0300)
Wrap inside "#if USE_AUTH .. #endif" block authentication related code to
allow build when no authentication used in squid

src/client_side_request.cc

index 956687d46c9aa85b4082dc901a744c6ca1804049..c89beda60fc561e451bb1821e7b39a8d70355833 100644 (file)
@@ -828,9 +828,11 @@ ClientRequestContext::clientAccessCheckDone(const allow_t &answer)
                                  http->request
             );
 
+#if USE_AUTH
         error->auth_user_request = 
             http->getConn() != NULL && http->getConn()->auth_user_request != NULL ?
             http->getConn()->auth_user_request : http->request->auth_user_request;
+#endif
 
         readNextRequest = true;
     }