B2BITS FIX Antenna C++  2.27.1
Public Member Functions | List of all members
System::SSLClientContext Class Reference

Client specific SSL context. More...

#include <B2BITS_IPAddr.h>

+ Inheritance diagram for System::SSLClientContext:
+ Collaboration diagram for System::SSLClientContext:

Public Member Functions

 SSLClientContext (int protocols=Protocol_ALL, const SSLContextConfiguratorPtr &configurator=SSLContextConfiguratorPtr())
 Creates client specific context. More...
 
- Public Member Functions inherited from System::SSLContext
void * get () const
 
const SSLContextConfiguratorPtr getConfigurator () const
 Returns SSLContextConfigurator pointer if any. More...
 
ContextType getContextType () const
 
std::string getStringProtocols () const
 
template<typename T >
T * getTyped () const
 
bool isClientContext () const
 Returns true if context contains client side information. More...
 
bool isSecuredContext () const
 Returns true if context contains client or server side information. More...
 
bool isServerContext () const
 Returns true if context contains server side information. More...
 
SSLContextoperator= (SSLContext const &src)
 
 SSLContext ()
 
 SSLContext (SSLContext const &src)
 
virtual ~SSLContext ()
 

Additional Inherited Members

- Public Types inherited from System::SSLContext
enum  ContextType { ContextType_Undefined, ContextType_Server, ContextType_Client }
 Type of the context contained. More...
 
- Public Attributes inherited from System::SSLContext
std::string ciphersList_
 
int protocols_
 
- Static Public Attributes inherited from System::SSLContext
static const int Protocol_ALL = Protocol_ALL_SSL | Protocol_ALL_TLS
 
static const int Protocol_ALL_SSL = Protocol_SSLv2 | Protocol_SSLv3
 
static const int Protocol_ALL_TLS = Protocol_TLSv1 | Protocol_TLSv1_1 | Protocol_TLSv1_2
 
static const int Protocol_SSLv2 = 1
 
static const int Protocol_SSLv3 = 2
 
static const int Protocol_TLSv1 = 4
 
static const int Protocol_TLSv1_1 = 8
 
static const int Protocol_TLSv1_2 = 16
 
- Protected Member Functions inherited from System::SSLContext
 SSLContext (ContextType ctxType, int protocols=Protocol_ALL, const SSLContextConfiguratorPtr &configurator=SSLContextConfiguratorPtr())
 
- Protected Attributes inherited from System::SSLContext
SSLContextConfiguratorPtr configurator_
 
ContextType ctxType_
 
void * sslCtx_
 

Detailed Description

Client specific SSL context.

This context type is used to establish secured connection from client side.

Constructor & Destructor Documentation

◆ SSLClientContext()

System::SSLClientContext::SSLClientContext ( int  protocols = Protocol_ALL,
const SSLContextConfiguratorPtr configurator = SSLContextConfiguratorPtr() 
)

Creates client specific context.

Parameters
protocols- defines which protocols are allowed to use.
configurator- custom SSL context configurator.