Connection.h
Go to the documentation of this file.
Definition: Alert.h:15
virtual SessionId getSessionId() const =0
Gets the current session id object. Should be called after handshake.
virtual const Certificate * getCertificate() const =0
Gets the certificate object. That object MUST be owned by the Connection implementation and should no...
Implemented by SSL adapter to handle certificate operations.
Definition: Certificate.h:48
virtual bool isHandshakeDone() const =0
Checks if the handshake has finished.
virtual int write(const uint8_t *data, size_t length)=0
Converts and sends plaintext data.
virtual CipherSuite getCipherSuite() const =0
Gets the cipher suite that was used.
Definition: Printable.h:42
int writeTcpData(uint8_t *data, size_t length)
virtual void freeCertificate()=0
virtual int read(InputBuffer &input, uint8_t *&output)=0
Reads encrypted information and decrypts it.
Implemented by SSL adapter to create and manage SSL connections.
Definition: Context.h:28
virtual String getErrorString(int error) const =0
Get string for error code.