#include <bio.h>
![Inheritance graph](classSsl_1_1ClientBio__inherit__graph.png)
![Collaboration graph](classSsl_1_1ClientBio__coll__graph.png)
Public Member Functions | |
ClientBio (const int anFd) | |
void | stateChanged (const SSL *ssl, int where, int ret) override |
int | write (const char *buf, int size, BIO *table) override |
The ClientBio version of the Ssl::Bio::write method. More... | |
int | read (char *buf, int size, BIO *table) override |
void | hold (bool h) |
Prevents or allow writing on socket. More... | |
void | setReadBufData (SBuf &data) |
virtual void | flush (BIO *) |
Static Public Member Functions | |
static BIO * | Create (const int fd, Security::Io::Type type) |
static void | Link (SSL *ssl, BIO *bio) |
Tells ssl connection to use BIO and monitor state via stateChanged() More... | |
Protected Attributes | |
const int | fd_ |
the SSL socket we are reading and writing More... | |
SBuf | rbuf |
Used to buffer input data. More... | |
Private Attributes | |
bool | holdRead_ |
The read hold state of the bio. More... | |
bool | holdWrite_ |
The write hold state of the bio. More... | |
FadingCounter | renegotiations |
client requested renegotiations limit control More... | |
const char * | abortReason |
why we should terminate the connection during next TLS operation (or nil) More... | |
Static Private Attributes | |
static const time_t | RenegotiationsWindow = 10 |
approximate size of a time window for computing client-initiated renegotiation rate (in seconds) More... | |
static const int | RenegotiationsLimit = 5 |
the maximum tolerated number of client-initiated renegotiations in RenegotiationsWindow More... | |
Detailed Description
BIO node to handle socket IO for squid client side If bumping is enabled this Bio detects and analyses client hello message to retrieve the SSL features supported by the client
Constructor & Destructor Documentation
◆ ClientBio()
|
explicit |
Definition at line 168 of file bio.cc.
References FadingCounter::configure(), and renegotiations.
Member Function Documentation
◆ Create()
|
staticinherited |
Creates a low-level BIO table, creates a high-level Ssl::Bio object for a given socket, and then links the two together via BIO_C_SET_FD.
Definition at line 63 of file bio.cc.
References squid_bio_create(), squid_bio_ctrl(), squid_bio_destroy(), squid_bio_puts(), squid_bio_read(), squid_bio_write(), and SquidMethods.
Referenced by CreateSession().
◆ flush()
|
inlinevirtualinherited |
Flushes any buffered data to socket. The Ssl::Bio does not buffer any data, so this method has nothing to do
Reimplemented in Ssl::ServerBio.
Definition at line 47 of file bio.h.
Referenced by squid_bio_ctrl().
◆ hold()
|
inline |
Definition at line 86 of file bio.h.
References holdRead_, and holdWrite_.
Referenced by ConnStateData::doPeekAndSpliceStep(), and ConnStateData::startPeekAndSplice().
◆ Link()
|
staticinherited |
◆ read()
The ClientBio version of the Ssl::Bio::read method If the holdRead flag is true then it does not write any data to socket and sets the "read retry" flag of the BIO to true
Reimplemented from Ssl::Bio.
Definition at line 216 of file bio.cc.
References debugs, int, Ssl::Bio::read(), and size.
◆ setReadBufData()
|
inline |
Sets the buffered input data (Bio::rbuf). Used to pass payload data (normally client HELLO data) retrieved by the caller.
Definition at line 91 of file bio.h.
References Ssl::Bio::rbuf.
Referenced by ConnStateData::getSslContextDone(), and ConnStateData::startPeekAndSplice().
◆ stateChanged()
The ClientBio version of the Ssl::Bio::stateChanged method When the client hello message retrieved, fill the "features" member with the client provided information.
Reimplemented from Ssl::Bio.
Definition at line 178 of file bio.cc.
References DBG_IMPORTANT, debugs, fd_table, and Ssl::Bio::stateChanged().
◆ write()
Member Data Documentation
◆ abortReason
◆ fd_
|
protectedinherited |
Definition at line 63 of file bio.h.
Referenced by Ssl::Bio::Bio().
◆ holdRead_
◆ holdWrite_
◆ rbuf
|
protectedinherited |
Definition at line 64 of file bio.h.
Referenced by setReadBufData().
◆ renegotiations
|
private |
Definition at line 101 of file bio.h.
Referenced by ClientBio().
◆ RenegotiationsLimit
|
staticprivate |
◆ RenegotiationsWindow
|
staticprivate |
The documentation for this class was generated from the following files:
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products