/*
- * $Id: external_acl.cc,v 1.75 2007/04/06 12:15:51 serassio Exp $
+ * $Id: external_acl.cc,v 1.76 2007/04/20 22:11:34 wessels Exp $
*
* DEBUG: section 82 External ACL
* AUTHOR: Henrik Nordstrom, MARA Systems AB
case _external_acl_format::EXT_ACL_USER_CERT_RAW:
- if (ch->conn().getRaw()) {
+ if (ch->conn() != NULL) {
SSL *ssl = fd_table[ch->conn()->fd].ssl;
if (ssl)
case _external_acl_format::EXT_ACL_USER_CERTCHAIN_RAW:
- if (ch->conn().getRaw()) {
+ if (ch->conn() != NULL) {
SSL *ssl = fd_table[ch->conn()->fd].ssl;
if (ssl)
case _external_acl_format::EXT_ACL_USER_CERT:
- if (ch->conn().getRaw()) {
+ if (ch->conn() != NULL) {
SSL *ssl = fd_table[ch->conn()->fd].ssl;
if (ssl)
case _external_acl_format::EXT_ACL_CA_CERT:
- if (ch->conn().getRaw()) {
+ if (ch->conn() != NULL) {
SSL *ssl = fd_table[ch->conn()->fd].ssl;
if (ssl)
/*
- * $Id: redirect.cc,v 1.115 2006/08/21 00:50:41 robertc Exp $
+ * $Id: redirect.cc,v 1.116 2007/04/20 22:11:34 wessels Exp $
*
* DEBUG: section 61 Redirector
* AUTHOR: Duane Wessels
r = cbdataAlloc(redirectStateData);
r->orig_url = xstrdup(http->uri);
- r->client_addr = conn.getRaw() != NULL ? conn->log_addr : no_addr;
+ r->client_addr = conn != NULL ? conn->log_addr : no_addr;
r->client_ident = NULL;
if (http->request->auth_user_request)
r->client_ident = http->request->extacl_user.buf();
}
- if (!r->client_ident && (conn.getRaw() != NULL && conn->rfc931[0]))
+ if (!r->client_ident && (conn != NULL && conn->rfc931[0]))
r->client_ident = conn->rfc931;
#if USE_SSL
- if (!r->client_ident && conn.getRaw() != NULL)
+ if (!r->client_ident && conn != NULL)
r->client_ident = sslGetUserEmail(fd_table[conn->fd].ssl);
#endif
/*
- * $Id: stat.cc,v 1.402 2007/04/13 22:46:03 wessels Exp $
+ * $Id: stat.cc,v 1.403 2007/04/20 22:11:34 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
ConnStateData::Pointer conn = http->getConn();
storeAppendPrintf(s, "Connection: %p\n", conn.getRaw());
- if (conn.getRaw() != NULL) {
+ if (conn != NULL) {
fd = conn->fd;
storeAppendPrintf(s, "\tFD %d, read %d, wrote %d\n", fd,
fd_table[fd].bytes_read, fd_table[fd].bytes_written);
p = http->request->extacl_user.buf();
}
- if (!p && (conn.getRaw() != NULL && conn->rfc931[0]))
+ if (!p && (conn != NULL && conn->rfc931[0]))
p = conn->rfc931;
#if USE_SSL
- if (!p && conn.getRaw() != NULL)
+ if (!p && conn != NULL)
p = sslGetUserEmail(fd_table[conn->fd].ssl);
#endif
/*
- * $Id: store_client.cc,v 1.151 2007/04/20 06:54:48 wessels Exp $
+ * $Id: store_client.cc,v 1.152 2007/04/20 22:06:44 wessels Exp $
*
* DEBUG: section 90 Storage Manager Client-Side Interface
* AUTHOR: Duane Wessels
* if needed.
*/
- if (STORE_DISK_CLIENT == getType() && NULL == swapin_sio.getRaw())
+ if (STORE_DISK_CLIENT == getType() && swapin_sio == NULL)
startSwapin();
else
scheduleRead();
/* Don't set store_io_pending here */
storeSwapInStart(this);
- if (NULL == swapin_sio.getRaw()) {
+ if (swapin_sio == NULL) {
fail();
flags.store_copying = 0;
return;
if (e->store_status == STORE_OK && e->swap_status != SWAPOUT_DONE)
e->swapOut();
- if (sc->swapin_sio.getRaw()) {
+ if (sc->swapin_sio != NULL) {
storeClose(sc->swapin_sio);
sc->swapin_sio = NULL;
statCounter.swap.ins++;
/*
- * $Id: store_swapout.cc,v 1.111 2007/04/19 16:14:53 wessels Exp $
+ * $Id: store_swapout.cc,v 1.112 2007/04/20 22:06:44 wessels Exp $
*
* DEBUG: section 20 Storage Manager Swapout Functions
* AUTHOR: Duane Wessels
generic_cbdata *c = new generic_cbdata(e);
sio = storeCreate(e, storeSwapOutFileNotify, storeSwapOutFileClosed, c);
- if (NULL == sio.getRaw()) {
+ if (sio == NULL) {
e->swap_status = SWAPOUT_NONE;
delete c;
storeLog(STORE_LOG_SWAPOUTFAIL, e);
debug(20, 7) ("storeSwapOut: swapout.queue_offset = %d\n",
(int) mem_obj->swapout.queue_offset);
- if (mem_obj->swapout.sio.getRaw())
+ if (mem_obj->swapout.sio != NULL)
debug(20, 7) ("storeSwapOut: storeOffset() = %d\n",
(int) mem_obj->swapout.sio->offset());
doPages(this);
- if (NULL == mem_obj->swapout.sio.getRaw())
+ if (mem_obj->swapout.sio == NULL)
/* oops, we're not swapping out any more */
return;
{
dlink_node *node;
- if (mem_obj->swapout.sio.getRaw() != NULL)
+ if (mem_obj->swapout.sio != NULL)
return true;
if (mem_obj->inmem_lo > 0)