15 #include "tlsopensslclient.h" 31 bool OpenSSLClient::setType()
33 m_ctx = SSL_CTX_new( SSLv23_client_method() );
37 SSL_CTX_set_options( m_ctx, SSL_OP_NO_SSLv3 );
49 unsigned char* buf[128];
50 long res = SSL_get_finished( m_ssl, buf, 128 );
51 return std::string( reinterpret_cast<char*>( buf ), res );
54 int OpenSSLClient::handshakeFunction()
56 return SSL_connect( m_ssl );
61 #endif // HAVE_OPENSSL The namespace for the gloox library.
virtual bool hasChannelBinding() const
OpenSSLClient(TLSHandler *th, const std::string &server)
An interface that allows for interacting with TLS implementations derived from TLSBase.
virtual const std::string channelBinding() const