Session.h
Go to the documentation of this file.
59 Options() : sessionResume(false), clientAuthentication(false), verifyLater(false), freeKeyCertAfterHandshake(false)
ValidatorList validators
List of certificate validators used by Client.
Definition: Session.h:119
bool onAccept(TcpConnection *client, tcp_pcb *tcp)
Called when a client connection is made via server TCP socket.
String hostName
Used for SNI https://en.wikipedia.org/wiki/Server_Name_Indication.
Definition: Session.h:85
bool validateCertificate()
Called by SSL adapter when certificate validation is required.
String toString() const
MaxBufferSize
Indicate to SSL how much memory (approximately) to commit for buffers.
Definition: Session.h:35
MaxBufferSize maxBufferSize
Controls SSL RAM usage.
Definition: Session.h:100
bool sessionResume
Keep a note of session ID for later re-use.
Definition: Session.h:54
bool isConnected() const
Determine if an SSL connection has been fully established.
Definition: Session.h:174
const SessionId * getSessionId() const
If available, return the current SSL Session ID.
Definition: Session.h:131
String toString(Certificate::RDN rdn)
Obtain a string describing the given name component.
Class to manage an SSL key certificate with optional password.
Definition: KeyCertPair.h:28
Connection * getConnection()
Get the currently active SSL connection object.
Definition: Session.h:158
bool verifyLater
Allow handshake to complete before verifying certificate.
Definition: Session.h:56
Definition: TcpConnection.h:39
void setConnection(Connection *connection)
Called by TcpConnection to set the established SSL connection.
Definition: Session.h:148
KeyCertPair keyCert
Required for server, optional for client.
Definition: Session.h:90
void handshakeComplete(bool success)
Called by SSL adapter when handshake has been completed.
Definition: Alert.h:15