/*
- * $Id: client_side.cc,v 1.620 2003/02/14 13:59:49 robertc Exp $
+ * $Id: client_side.cc,v 1.621 2003/02/14 23:11:36 hno Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
/* handle a new HTTPS connection */
static void
-httpsAccept(int sock, int newfd, struct sockaddr_in *me, struct sockaddr_in *peer,
+httpsAccept(int sock, int newfd, ConnectionDetail *details,
comm_err_t flag, int xerrno, void *data)
{
int *N = &incoming_sockets_accepted;
fd_table[newfd].write_method = &ssl_write_method;
debug(50, 5) ("httpsAccept: FD %d accepted, starting SSL negotiation.\n", newfd);
- connState = connStateCreate(peer, me, newfd);
+ connState = connStateCreate(&details->peer, &details->me, newfd);
/* XXX account connState->in.buf */
comm_add_close_handler(newfd, connStateFree, connState);
if (Config.onoff.log_fqdn)
- fqdncache_gethostbyaddr(peer->sin_addr, FQDN_LOOKUP_IF_MISS);
+ fqdncache_gethostbyaddr(details->peer.sin_addr, FQDN_LOOKUP_IF_MISS);
commSetTimeout(newfd, Config.Timeout.request, requestTimeout, connState);
#if USE_IDENT
ACLChecklist identChecklist;
- identChecklist.src_addr = peer->sin_addr;
- identChecklist.my_addr = me->sin_addr;
- identChecklist.my_port = ntohs(me->sin_port);
+ identChecklist.src_addr = details->peer.sin_addr;
+ identChecklist.my_addr = details->me.sin_addr;
+ identChecklist.my_port = ntohs(details->me.sin_port);
if (aclCheckFast(Config.accessList.identLookup, &identChecklist))
- identStart(me, peer, clientIdentDone, connState);
+ identStart(&details->me, &details->peer, clientIdentDone, connState);
#endif
commSetSelect(newfd, COMM_SELECT_READ, clientNegotiateSSL, connState, 0);
commSetDefer(newfd, clientReadDefer, connState);
- clientdbEstablished(peer->sin_addr, 1);
+ clientdbEstablished(details->peer.sin_addr, 1);
(*N)++;
}