gloox
1.0.28
|
#include <tlsopensslclient.h>
Public Member Functions | |
OpenSSLClient (TLSHandler *th, const std::string &server) | |
virtual | ~OpenSSLClient () |
virtual bool | hasChannelBinding () const |
virtual const std::string | channelBinding () const |
virtual const std::string | channelBindingType () 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 CertInfo & | fetchTLSInfo () const |
This class implements a TLS client backend using OpenSSL.
Definition at line 35 of file tlsopensslclient.h.
OpenSSLClient | ( | TLSHandler * | th, |
const std::string & | server | ||
) |
Constructor.
th | The TLSHandler to handle TLS-related events. |
server | The server to use in certificate verification. |
Definition at line 22 of file tlsopensslclient.cpp.
|
virtual |
Virtual destructor.
Definition at line 27 of file tlsopensslclient.cpp.
|
virtual |
Returns the channel binding data for the established connection.
Reimplemented from TLSBase.
Definition at line 47 of file tlsopensslclient.cpp.
|
virtual |
Returns the type of channel binding to be used with SCRAM-SHA-1-PLUS.
Reimplemented from TLSBase.
Definition at line 65 of file tlsopensslclient.cpp.
|
virtual |
This function indicates whether the underlying TLS implementation supports channel binding (used in e.g. SASL SCRAM-SHA-1-PLUS).
Reimplemented from TLSBase.
Definition at line 42 of file tlsopensslclient.cpp.