gloox  1.1-svn
Public Member Functions | List of all members
SChannelServer Class Reference

#include <tlsschannelserver.h>

Inheritance diagram for SChannelServer:
Inheritance graph
[legend]

Public Member Functions

 SChannelServer (TLSHandler *th)
virtual ~SChannelServer ()
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 CertInfofetchTLSInfo () const

Detailed Description

This class implements a server-side TLS backend using SChannel.

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
1.1

Definition at line 39 of file tlsschannelserver.h.

Constructor & Destructor Documentation

Constructor.

Parameters
thThe TLSHandler to handle TLS-related events.

Definition at line 22 of file tlsschannelserver.cpp.

~SChannelServer ( )
virtual

Virtual destructor.

Definition at line 28 of file tlsschannelserver.cpp.

Member Function Documentation

bool handshake ( )
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().

Returns
True if the handshake was successful or if more input is needed, false if the handshake failed.

Implements TLSBase.

Definition at line 35 of file tlsschannelserver.cpp.


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