13 #ifndef CONNECTIONTLS_H__
14 #define CONNECTIONTLS_H__
18 #include "connectionbase.h"
19 #include "tlsdefault.h"
20 #include "connectiondatahandler.h"
107 void setClientCert(
const std::string& clientKey,
const std::string& clientCerts )
109 m_clientKey = clientKey;
110 m_clientCerts = clientCerts;
125 virtual void setSubject(
const std::string& subject ) { m_subject = subject; }
150 virtual bool send(
const std::string& data );
156 virtual void disconnect();
159 virtual void cleanup();
162 virtual void getStatistics(
long int& totalIn,
long int& totalOut );
165 virtual void handleReceivedData(
const ConnectionBase* connection,
const std::string& data );
177 virtual void handleEncryptedData(
const TLSBase*,
const std::string& data );
180 virtual void handleDecryptedData(
const TLSBase*,
const std::string& data );
183 virtual void handleHandshakeResult(
const TLSBase* base,
bool success,
CertInfo& certinfo );
202 std::string m_clientCerts;
203 std::string m_clientKey;
204 std::string m_subject;
213 #endif // CONNECTIONTLS_H__