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

◆ client_comm_bind()

static int client_comm_bind ( int  sock,
const Ip::Address addr 
)
static

◆ client_comm_connect()

static int client_comm_connect ( int  sock,
const Ip::Address addr 
)
static

◆ doTlsHandshake()

static bool doTlsHandshake ( const char *  type)
static

Definition at line 403 of file Transport.cc.

References conn, debugVerbose, and Transport::TheConfig::session.

Referenced by tryTlsAnonymous(), and tryTlsCertificate().

◆ gnutlsDebugHandler()

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

Definition at line 346 of file Transport.cc.

References debugVerbose.

Referenced by Transport::InitTls().

◆ loadTlsParameters()

static bool loadTlsParameters ( )
static

◆ resolveDestination()

◆ tryTlsAnonymous()

static bool tryTlsAnonymous ( )
static

◆ tryTlsCertificate()

static bool tryTlsCertificate ( const char *  hostname)
static

◆ verifyByCA()

static int verifyByCA ( gnutls_session_t  session)
static

Definition at line 296 of file Transport.cc.

References Transport::TheConfig::hostname, and type.

Referenced by verifyTlsCertificate().

◆ 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

◆ conn

int conn = -1

Definition at line 26 of file Transport.cc.

Referenced by Format::Format::assemble(), clientReplyContext::buildReplyHeader(), IdentLookup::checkForAsync(), checkTimeouts(), Ftp::Channel::clear(), clientAclChecklistFill(), TunnelStateData::clientExpectsConnectResponse(), clientFollowXForwardedForCheck(), clientNegotiateSSL(), Ftp::Channel::close(), Transport::CloseConnection(), TunnelStateData::Connection::closeIfOpen(), IdleConnList::closeN(), comm_openex(), comm_read_base(), commSetConnTimeout(), Transport::Connect(), Ftp::Client::connectDataChannel(), FwdState::connectDone(), IdleConnList::count(), Ftp::Server::createDataConnection(), clientReplyContext::doGetMoreData(), doTlsHandshake(), TunnelStateData::Connection::error(), IdleConnList::findAndClose(), Http::Stream::finished(), Ftp::Channel::forget(), Ip::Qos::getNfConnmark(), htcpIncomingConnectionOpened(), httpsCreate(), icpIncomingConnectionOpened(), idnsInitVC(), idnsInitVCConnected(), IdleConnList::isAvailable(), Ftp::Server::listenForDataConnection(), main(), ACLAnnotateClientStrategy::match(), Acl::ConnMark::match(), ACLServerNameStrategy::match(), ACLDestinationIP::match(), TunnelStateData::noteConnectFailure(), Ident::IdentStateData::notify(), Ftp::Channel::opened(), PeerPoolMgr::openNewConnection(), operator<<(), Http::One::Server::parseOneRequest(), FwdState::pconnPop(), peerProbeConnect(), clientReplyContext::processExpired(), clientReplyContext::processMiss(), IdleConnList::push(), Transport::Read(), resolveDestination(), clientReplyContext::sendMoreData(), Client::sendMoreRequestBody(), FwdState::serverConnection(), statClientRequests(), Ident::IdentStateData::swanSong(), StoreEntry::swapoutFailed(), switchToTunnel(), tryTlsCertificate(), tunnelConnectDone(), Auth::UserRequest::user(), Comm::Write(), Transport::Write(), and TunnelStateData::Connection::write().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors