1#if !defined(TlsConnection_hxx)
2#define TlsConnection_hxx
4#if defined(HAVE_CONFIG_H)
24#include <openssl/ssl.h>
44 int read(
char* buf,
const int count );
45 int write(
const char* buf,
const int count );
65 void computePeerName();
66 Data getPeerNamesData()
const;
68 bool handleOpenSSLErrorQueue(
int ret,
unsigned long err,
const char* op,
bool addToAdditionalFailureStrings =
false);
76 bool mHandShakeWantsRead;
80 std::list<BaseSecurity::PeerName> mPeerNames;
virtual Transport * transport() const
Connection implements, via sockets, ConnectionBase for managed connections.
int read()
move data from the connection to the buffer; move this to front of least recently used list.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
static const char * fromState(TlsState)
int write(const char *buf, const int count)
pure virtual, but need concrete Connection for book-ends of lists
virtual bool isGood()
has valid connection
const Data & getSni() const
SNI the client sent in its ClientHello, for connections we accepted (server mode); empty if it sent n...
RESIP_HeapCount(TlsConnection)
virtual bool hasDataToRead()
always true – always add to fdset as read ready
virtual bool transportWrite()
virtual bool isWritable()
void getPeerNames(std::list< Data > &peerNames) const
The base class for Transport classes.
Represents a network address.
SSLType
Note: Before adding to the SSLType enum, please see the comments about mTlsCtx in resip/stack/ssl/Sec...
dcm! – add UnusedChecking(_enum) below;