tlshandler.h
/*
Copyright (c) 2007-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef TLSHANDLER_H__
#define TLSHANDLER_H__
#include "macros.h"
#include <string>
namespace gloox
{
struct CertInfo;
class TLSBase;
class GLOOX_API TLSHandler
{
public:
virtual ~TLSHandler() {}
virtual void handleEncryptedData( const TLSBase* base, const std::string& data ) = 0;
virtual void handleDecryptedData( const TLSBase* base, const std::string& data ) = 0;
virtual void handleHandshakeResult( const TLSBase* base, bool success, CertInfo &certinfo ) = 0;
};
}
#endif // TLSHANDLER_H__
gloox::TLSBase
An abstract base class for TLS implementations.
Definition tlsbase.h:32
gloox::TLSHandler
An interface that allows for interacting with TLS implementations derived from TLSBase.
Definition tlshandler.h:35
gloox::TLSHandler::handleDecryptedData
virtual void handleDecryptedData(const TLSBase *base, const std::string &data)=0
gloox::TLSHandler::handleEncryptedData
virtual void handleEncryptedData(const TLSBase *base, const std::string &data)=0
gloox::TLSHandler::handleHandshakeResult
virtual void handleHandshakeResult(const TLSBase *base, bool success, CertInfo &certinfo)=0
gloox::TLSHandler::~TLSHandler
virtual ~TLSHandler()
Definition tlshandler.h:40
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::CertInfo
Definition gloox.h:990