15 #ifndef TLSOPENSSLBASE_H__
16 #define TLSOPENSSLBASE_H__
24 #include <openssl/ssl.h>
57 virtual bool encrypt(
const std::string& data );
60 virtual int decrypt(
const std::string& data );
69 virtual bool setType() = 0;
70 virtual int handshakeFunction() = 0;
79 virtual bool privateInit() {
return true; }
80 virtual void setCACerts(
const StringList& cacerts );
81 virtual void setClientCert(
const std::string& clientKey,
const std::string& clientCerts );
90 void doTLSOperation( TLSOperation op );
91 int openSSLTime2UnixTime(
const char* time_string );
93 std::string m_recvBuffer;
94 std::string m_sendBuffer;
102 #endif // HAVE_OPENSSL
104 #endif // TLSOPENSSLBASE_H__