/*
- * $Id: ACLChecklist.cc,v 1.34 2006/05/18 21:51:10 wessels Exp $
+ * $Id: ACLChecklist.cc,v 1.35 2007/04/20 22:24:07 wessels Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
/* the checklist lock */
auth_user_request->unlock();
/* it might have been connection based */
- assert(conn().getRaw() != NULL);
+ assert(conn() != NULL);
conn()->auth_user_request = NULL;
conn()->auth_type = AUTH_BROKEN;
auth_user_request = NULL;
void
ACLChecklist::conn(ConnStateData::Pointer aConn)
{
- assert (conn().getRaw() == NULL);
+ assert (conn() == NULL);
conn_ = aConn;
}
{
if (checklist->rfc931[0]) {
return data->match(checklist->rfc931);
- } else if (checklist->conn().getRaw() != NULL && checklist->conn()->rfc931[0]) {
+ } else if (checklist->conn() != NULL && checklist->conn()->rfc931[0]) {
return data->match(checklist->conn()->rfc931);
} else {
debug(28, 3) ("ACLIdent::match() - switching to ident lookup state\n");
void
IdentLookup::checkForAsync(ACLChecklist *checklist)const
{
- if (checklist->conn().getRaw() != NULL) {
+ if (checklist->conn() != NULL) {
debug(28, 3) ("IdentLookup::checkForAsync: Doing ident lookup\n");
checklist->asyncInProgress(true);
identStart(&checklist->conn()->me, &checklist->conn()->peer,
* Cache the ident result in the connection, to avoid redoing ident lookup
* over and over on persistent connections
*/
- if (checklist->conn().getRaw() != NULL && !checklist->conn()->rfc931[0])
+ if (checklist->conn() != NULL && !checklist->conn()->rfc931[0])
xstrncpy(checklist->conn()->rfc931, checklist->rfc931, USER_IDENT_SZ);
checklist->asyncInProgress(false);
/* OR the connection was closed, there's no way to continue */
checklist->auth_user_request->unlock();
- if (checklist->conn().getRaw() != NULL) {
+ if (checklist->conn() != NULL) {
checklist->conn()->auth_user_request = NULL;
checklist->conn()->auth_type = AUTH_BROKEN;
}
/*
- * $Id: AuthUserRequest.cc,v 1.11 2007/01/03 12:57:47 hno Exp $
+ * $Id: AuthUserRequest.cc,v 1.12 2007/04/20 22:24:07 wessels Exp $
*
* DO NOT MODIFY NEXT 2 LINES:
* arch-tag: 6803fde1-d5a2-4c29-9034-1c0c9f650eb4
return *auth_user_request;
else if (request != NULL && request->auth_user_request)
return request->auth_user_request;
- else if (conn.getRaw() != NULL)
+ else if (conn != NULL)
return conn->auth_user_request;
else
return NULL;
*/
if (((proxy_auth == NULL) && (!authenticateUserAuthenticated(authTryGetUser(auth_user_request,conn,request))))
- || (conn.getRaw() != NULL && conn->auth_type == AUTH_BROKEN))
+ || (conn != NULL && conn->auth_type == AUTH_BROKEN))
{
/* no header or authentication failed/got corrupted - restart */
debug(29, 4) ("authenticateAuthenticate: broken auth or no proxy_auth header. Requesting auth header.\n");
/* something wrong with the AUTH credentials. Force a new attempt */
- if (conn.getRaw() != NULL) {
+ if (conn != NULL) {
conn->auth_type = AUTH_UNKNOWN;
if (conn->auth_user_request)
* No check for function required in the if: its compulsory for conn based
* auth modules
*/
- if (proxy_auth && conn.getRaw() != NULL && conn->auth_user_request &&
+ if (proxy_auth && conn != NULL && conn->auth_user_request &&
authenticateUserAuthenticated(conn->auth_user_request) &&
conn->auth_user_request->connLastHeader() != NULL &&
strcmp(proxy_auth, conn->auth_user_request->connLastHeader()))
if (*auth_user_request == NULL)
{
debug(29, 9) ("authenticateAuthenticate: This is a new checklist test on FD:%d\n",
- conn.getRaw() != NULL ? conn->fd : -1);
+ conn != NULL ? conn->fd : -1);
- if (proxy_auth && !request->auth_user_request && conn.getRaw() && conn->auth_user_request) {
+ if (proxy_auth && !request->auth_user_request && conn != NULL && conn->auth_user_request) {
AuthConfig * scheme = AuthConfig::Find(proxy_auth);
if (!conn->auth_user_request->user() || conn->auth_user_request->user()->config != scheme) {
}
if ((!request->auth_user_request)
- && (conn.getRaw() == NULL || conn->auth_type == AUTH_UNKNOWN)) {
+ && (conn == NULL || conn->auth_type == AUTH_UNKNOWN)) {
/* beginning of a new request check */
debug(29, 4) ("authenticateAuthenticate: no connection authentication type\n");
;
} else {
- assert (conn.getRaw() != NULL);
+ assert (conn != NULL);
if (conn->auth_user_request != NULL) {
*auth_user_request = conn->auth_user_request;
/*
- * $Id: DelayId.cc,v 1.19 2006/02/17 18:10:59 wessels Exp $
+ * $Id: DelayId.cc,v 1.20 2007/04/20 22:24:07 wessels Exp $
*
* DEBUG: section 77 Delay Pools
* AUTHOR: Robert Collins <robertc@squid-cache.org>
ch.my_addr = r->my_addr;
ch.my_port = r->my_port;
- if (http->getConn().getRaw() != NULL)
+ if (http->getConn() != NULL)
ch.conn(http->getConn());
ch.request = HTTPMSGLOCK(r);
/* limited */
int nbytes = max(minimum, maximum);
- if (compositeId.getRaw())
+ if (compositeId != NULL)
nbytes = compositeId->bytesWanted(minimum, nbytes);
return nbytes;
assert ((unsigned short)(pool() - 1) != 0xFFFF);
- if (compositeId.getRaw())
+ if (compositeId != NULL)
compositeId->bytesIn(qty);
}
void
DelayId::delayRead(DeferredRead const &aRead)
{
- assert (compositeId.getRaw());
+ assert (compositeId != NULL);
compositeId->delayRead(aRead);
}
/*
- * $Id: DelayPool.cc,v 1.5 2003/08/04 22:14:40 robertc Exp $
+ * $Id: DelayPool.cc,v 1.6 2007/04/20 22:24:07 wessels Exp $
*
* DEBUG: section 77 Delay Pools
* AUTHOR: Robert Collins <robertc@squid-cache.org>
void
DelayPool::parse()
{
- assert (theComposite().getRaw());
+ assert (theComposite() != NULL);
theComposite()->parse();
}
void
DelayPool::dump (StoreEntry *entry, unsigned int i) const
{
- if (!theComposite().getRaw())
+ if (!theComposite() != NULL)
return;
storeAppendPrintf(entry, "delay_class %d %s\n", i + 1, pool->theClassTypeLabel());