gloox  1.0.27
Public Member Functions | List of all members
OpenSSLClient Class Reference

#include <tlsopensslclient.h>

Inheritance diagram for OpenSSLClient:
Inheritance graph

Public Member Functions

 OpenSSLClient (TLSHandler *th, const std::string &server)
virtual ~OpenSSLClient ()
virtual bool hasChannelBinding () const
virtual const std::string channelBinding () const
- Public Member Functions inherited from OpenSSLBase
 OpenSSLBase (TLSHandler *th, const std::string &server=EmptyString)
virtual ~OpenSSLBase ()
virtual bool init (const std::string &clientKey=EmptyString, const std::string &clientCerts=EmptyString, const StringList &cacerts=StringList())
virtual bool encrypt (const std::string &data)
virtual int decrypt (const std::string &data)
virtual void cleanup ()
virtual bool handshake ()
virtual void setCACerts (const StringList &cacerts)
virtual void setClientCert (const std::string &clientKey, const std::string &clientCerts)
- Public Member Functions inherited from TLSBase
 TLSBase (TLSHandler *th, const std::string server)
virtual ~TLSBase ()
void setInitLib (bool init)
virtual bool isSecure () const
virtual const CertInfofetchTLSInfo () const

Detailed Description

This class implements a TLS client backend using OpenSSL.

Jakob Schröter

Definition at line 35 of file tlsopensslclient.h.

Constructor & Destructor Documentation

◆ OpenSSLClient()

OpenSSLClient ( TLSHandler th,
const std::string &  server 


thThe TLSHandler to handle TLS-related events.
serverThe server to use in certificate verification.

Definition at line 22 of file tlsopensslclient.cpp.

◆ ~OpenSSLClient()

~OpenSSLClient ( )

Virtual destructor.

Definition at line 27 of file tlsopensslclient.cpp.

Member Function Documentation

◆ channelBinding()

const std::string channelBinding ( ) const

Returns the channel binding data for the established connection.

The channel binding data, if any, or the empty string.

Reimplemented from TLSBase.

Definition at line 47 of file tlsopensslclient.cpp.

◆ hasChannelBinding()

bool hasChannelBinding ( ) const

This function indicates whether the underlying TLS implementation supports channel binding (used in e.g. SASL SCRAM-SHA-1-PLUS).

True if channel binding is supported, false otherwise.

Reimplemented from TLSBase.

Definition at line 42 of file tlsopensslclient.cpp.

The documentation for this class was generated from the following files: