tlsopensslclient.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 TLSOPENSSLCLIENT_H__
#define TLSOPENSSLCLIENT_H__
#include "tlsopensslbase.h"
#include "config.h"
#ifdef HAVE_OPENSSL
#include <openssl/ssl.h>
namespace gloox
{
class OpenSSLClient : public OpenSSLBase
{
public:
OpenSSLClient( TLSHandler* th, const std::string& server );
virtual ~OpenSSLClient();
// reimplemented from TLSBase
virtual bool hasChannelBinding() const;
// reimplemented from TLSBase
virtual const std::string channelBinding() const;
// reimplemented from TLSBase
virtual const std::string channelBindingType() const;
private:
// reimplemented from OpenSSLBase
virtual bool setType();
// reimplemented from OpenSSLBase
virtual int handshakeFunction();
};
}
#endif // HAVE_OPENSSL
#endif // TLSOPENSSLCLIENT_H__
gloox::OpenSSLBase::OpenSSLBase
OpenSSLBase(TLSHandler *th, const std::string &server=EmptyString)
Definition tlsopensslbase.cpp:36
gloox::OpenSSLClient::channelBinding
virtual const std::string channelBinding() const
Definition tlsopensslclient.cpp:47
gloox::OpenSSLClient::hasChannelBinding
virtual bool hasChannelBinding() const
Definition tlsopensslclient.cpp:42
gloox::OpenSSLClient::~OpenSSLClient
virtual ~OpenSSLClient()
Definition tlsopensslclient.cpp:27
gloox::OpenSSLClient::channelBindingType
virtual const std::string channelBindingType() const
Definition tlsopensslclient.cpp:65
gloox::OpenSSLClient::OpenSSLClient
OpenSSLClient(TLSHandler *th, const std::string &server)
Definition tlsopensslclient.cpp:22
gloox::TLSHandler
An interface that allows for interacting with TLS implementations derived from TLSBase.
Definition tlshandler.h:35
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28