Also adds test-suite scan for --disable-auth issues.
Cherry-picked from trunk (r11472).
CompositeSelectionDetails() {}
Ip::Address src_addr;
+#if USE_AUTH
AuthUserRequest::Pointer user;
+#endif
String tag;
};
DelayId result (pool + 1);
CompositePoolNode::CompositeSelectionDetails details;
details.src_addr = ch.src_addr;
+#if USE_AUTH
details.user = r->auth_user_request;
+#endif
details.tag = r->tag;
result.compositePosition(DelayPools::delay_data[pool].theComposite()->id(details));
return result;
#include "config.h"
-#if USE_DELAY_POOLS
+#if USE_DELAY_POOLS && USE_AUTH
#include "squid.h"
#include "DelayUser.h"
#include "auth/UserRequest.h"
theBucket->theBucket.bytesIn(qty);
}
-#endif
+#endif /* USE_DELAY_POOLS && USE_AUTH */
#ifndef DELAYUSER_H
#define DELAYUSER_H
-#if USE_DELAY_POOLS
+#if USE_DELAY_POOLS && USE_AUTH
#include "squid.h"
#include "auth/Gadgets.h"
Splay<DelayUserBucket::Pointer> buckets;
};
-#endif /* USE_DELAY_POOLS */
+#endif /* USE_DELAY_POOLS && USE_AUTH */
#endif /* DELAYUSER_H */
repContext->setReplyToError(ERR_ICAP_FAILURE, HTTP_INTERNAL_SERVER_ERROR,
request->method, NULL,
(c != NULL ? c->peer : noAddr), request, NULL,
+#if USE_AUTH
(c != NULL && c->auth_user_request != NULL ?
c->auth_user_request : request->auth_user_request));
+#else
+ NULL);
+#endif
request->detailError(ERR_ICAP_FAILURE, errDetail);
temp->push_back (new Aggregate);
temp->push_back (new ClassCNetPool);
temp->push_back (new ClassCHostPool);
+#if USE_AUTH
temp->push_back (new DelayUser);
+#endif
}
break;