Transport.cc File Reference
#include "squid.h"
#include "ip/Address.h"
#include "ip/tools.h"
#include "tools/squidclient/Ping.h"
#include "tools/squidclient/Transport.h"
#include <iostream>
Include dependency graph for Transport.cc:

Go to the source code of this file.

Functions

static int client_comm_bind (int sock, const Ip::Address &addr)
 Set up the source socket address from which to send. More...
 
static void resolveDestination (Ip::Address &iaddr)
 
static int client_comm_connect (int sock, const Ip::Address &addr)
 Set up the destination socket address for message to send to. More...
 
static int verifyByCA (gnutls_session_t session)
 
static int verifyTlsCertificate (gnutls_session_t session)
 
static void gnutlsDebugHandler (int level, const char *msg)
 
static bool doTlsHandshake (const char *type)
 
static bool loadTlsParameters ()
 
static bool tryTlsAnonymous ()
 
static bool tryTlsCertificate (const char *hostname)
 

Variables

int conn = -1
 the current server connection FD More...
 

Function Documentation

static int client_comm_bind ( int  sock,
const Ip::Address addr 
)
static
static int client_comm_connect ( int  sock,
const Ip::Address addr 
)
static
static bool doTlsHandshake ( const char *  type)
static

Definition at line 403 of file Transport.cc.

References conn, and debugVerbose.

Referenced by tryTlsAnonymous(), and tryTlsCertificate().

static void gnutlsDebugHandler ( int  level,
const char *  msg 
)
static

Definition at line 346 of file Transport.cc.

References debugVerbose.

Referenced by Transport::InitTls().

static bool loadTlsParameters ( )
static

Definition at line 432 of file Transport.cc.

References NULL.

Referenced by tryTlsAnonymous(), and tryTlsCertificate().

static bool tryTlsAnonymous ( )
static

Definition at line 449 of file Transport.cc.

References doTlsHandshake(), and loadTlsParameters().

Referenced by Transport::MaybeStartTls().

static bool tryTlsCertificate ( const char *  hostname)
static

Definition at line 468 of file Transport.cc.

References conn, doTlsHandshake(), and loadTlsParameters().

Referenced by Transport::MaybeStartTls().

static int verifyByCA ( gnutls_session_t  session)
static

Definition at line 296 of file Transport.cc.

References type.

Referenced by verifyTlsCertificate().

static int verifyTlsCertificate ( gnutls_session_t  session)
static

Definition at line 328 of file Transport.cc.

References verifyByCA().

Referenced by Transport::InitTls().

Variable Documentation

int conn = -1

Definition at line 26 of file Transport.cc.

Referenced by Comm::TcpAcceptor::acceptNext(), Comm::TcpAcceptor::acceptOne(), Format::Format::assemble(), clientReplyContext::buildReplyHeader(), IdentLookup::checkForAsync(), checkTimeouts(), Snmp::Inquirer::cleanup(), Mgr::Inquirer::cleanup(), Mgr::Forwarder::cleanup(), Ftp::Channel::clear(), Ipc::UdsOp::clearTimeout(), clientAclChecklistCreate(), clientFollowXForwardedForCheck(), clientIdentDone(), clientNegotiateSSL(), Ftp::Channel::close(), Transport::CloseConnection(), TunnelStateData::Connection::closeIfOpen(), IdleConnList::closeN(), comm_openex(), comm_read_base(), commSetConnTimeout(), Transport::Connect(), Ftp::Client::connectDataChannel(), Log::TcpLogger::connectDone(), FwdState::connectDone(), Ftp::Server::createDataConnection(), Log::TcpLogger::delayedReconnect(), Log::TcpLogger::disconnect(), Log::TcpLogger::doConnect(), clientReplyContext::doGetMoreData(), Ipc::Port::doListen(), Comm::TcpAcceptor::doneAll(), Log::TcpLogger::doneAll(), doTlsHandshake(), TunnelStateData::Connection::error(), Comm::IoCallback::finish(), Http::Stream::finished(), Ftp::Channel::forget(), Log::TcpLogger::handleClosure(), Comm::TcpAcceptor::handleClosure(), Mgr::Forwarder::handleException(), htcpIncomingConnectionOpened(), icpIncomingConnectionOpened(), idnsInitVC(), idnsInitVCConnected(), Ipc::ImportFdIntoComm(), IdleConnList::isAvailable(), Ftp::Server::listenForDataConnection(), logAcceptError(), main(), ACLAnnotateClientStrategy::match(), ACLServerNameStrategy::match(), ACLDestinationIP::match(), Snmp::Inquirer::noteCommClosed(), Mgr::Inquirer::noteCommClosed(), Mgr::Forwarder::noteCommClosed(), TunnelStateData::noteConnectFailure(), Mgr::Inquirer::noteWroteHeader(), Comm::TcpAcceptor::notify(), Comm::TcpAcceptor::oldAccept(), Ftp::Channel::opened(), PeerPoolMgr::openNewConnection(), operator<<(), Mgr::Request::pack(), FwdState::pconnPop(), peerProbeConnect(), clientReplyContext::processExpired(), clientReplyContext::processMiss(), IdleConnList::push(), Transport::Read(), Mgr::Inquirer::removeCloseHandler(), Comm::IoCallback::reset(), resolveDestination(), Comm::IoCallback::selectOrQueueWrite(), clientReplyContext::sendMoreData(), Client::sendMoreRequestBody(), Mgr::Inquirer::sendResponse(), Snmp::Inquirer::sendResponse(), Comm::TcpAcceptor::setListen(), Ipc::UdsOp::setTimeout(), Snmp::Inquirer::start(), Mgr::Inquirer::start(), Comm::TcpAcceptor::start(), Ipc::StartListeningCb::startPrint(), statClientRequests(), Comm::TcpAcceptor::status(), Comm::TcpAcceptor::swanSong(), Ident::IdentStateData::swanSong(), switchToTunnel(), tryTlsCertificate(), tunnelConnectDone(), Comm::Write(), Ipc::UdsSender::write(), Transport::Write(), TunnelStateData::Connection::write(), Log::TcpLogger::writeIfPossible(), and Ipc::UdsSender::wrote().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors