13 #ifndef CONNECTIONTLS_H__
14 #define CONNECTIONTLS_H__
18 #include "connectionbase.h"
19 #include "tlsdefault.h"
20 #include "connectiondatahandler.h"
108 void setClientCert(
const std::string& clientKey,
const std::string& clientCerts )
110 m_clientKey = clientKey;
111 m_clientCerts = clientCerts;
137 virtual bool send(
const std::string& data );
143 virtual void disconnect();
146 virtual void cleanup();
149 virtual void getStatistics(
long int& totalIn,
long int& totalOut );
152 virtual void handleReceivedData(
const ConnectionBase* connection,
const std::string& data );
164 virtual void handleEncryptedData(
const TLSBase*,
const std::string& data );
167 virtual void handleDecryptedData(
const TLSBase*,
const std::string& data );
170 virtual void handleHandshakeResult(
const TLSBase* base,
bool success,
CertInfo& certinfo );
189 std::string m_clientCerts;
190 std::string m_clientKey;
199 #endif // CONNECTIONTLS_H__