gloox
1.1-svn
|
#include <tlsschannelclient.h>
Public Member Functions | |
SChannelClient (TLSHandler *th, const std::string &server) | |
virtual | ~SChannelClient () |
virtual bool | handshake () |
Public Member Functions inherited from SChannelBase | |
SChannelBase (TLSHandler *th, const std::string &server) | |
virtual | ~SChannelBase () |
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 () |
Public Member Functions inherited from TLSBase | |
TLSBase (TLSHandler *th, const std::string server) | |
virtual | ~TLSBase () |
void | setInitLib (bool init) |
virtual void | setSubject (const std::string &subject) |
virtual bool | isSecure () const |
virtual const CertInfo & | fetchTLSInfo () const |
This class implements a TLS backend using SChannel.
Definition at line 38 of file tlsschannelclient.h.
SChannelClient | ( | 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 21 of file tlsschannelclient.cpp.
|
virtual |
Virtual destructor.
Definition at line 27 of file tlsschannelclient.cpp.
|
virtual |
This functiopn performs the TLS handshake. Handshake data from the server side should be fed in using decrypt(). Handshake data that is to be sent to the other side is pushed through TLSBase's handleEncryptedData().
Implements TLSBase.
Definition at line 34 of file tlsschannelclient.cpp.