aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Public Member Functions | List of all members
Aws::Crt::Io::TlsContext Class Referencefinal

#include <TlsOptions.h>

Public Member Functions

 TlsContext () noexcept
 
 TlsContext (TlsContextOptions &options, TlsMode mode, Allocator *allocator=ApiAllocator()) noexcept
 
 ~TlsContext ()=default
 
 TlsContext (const TlsContext &) noexcept=default
 
TlsContextoperator= (const TlsContext &) noexcept=default
 
 TlsContext (TlsContext &&) noexcept=default
 
TlsContextoperator= (TlsContext &&) noexcept=default
 
TlsConnectionOptions NewConnectionOptions () const noexcept
 
 operator bool () const noexcept
 
int GetInitializationError () const noexcept
 

Detailed Description

Stateful context for TLS with a given configuration. Per-connection TLS "contexts" (TlsConnectionOptions) are instantiated from this as needed.

Constructor & Destructor Documentation

Aws::Crt::Io::TlsContext::TlsContext ( )
noexcept
Aws::Crt::Io::TlsContext::TlsContext ( TlsContextOptions options,
TlsMode  mode,
Allocator allocator = ApiAllocator() 
)
noexcept
Aws::Crt::Io::TlsContext::~TlsContext ( )
default
Aws::Crt::Io::TlsContext::TlsContext ( const TlsContext )
defaultnoexcept
Aws::Crt::Io::TlsContext::TlsContext ( TlsContext &&  )
defaultnoexcept

Member Function Documentation

int Aws::Crt::Io::TlsContext::GetInitializationError ( ) const
inlinenoexcept
Returns
the value of the last aws error encountered by operations on this instance.
TlsConnectionOptions Aws::Crt::Io::TlsContext::NewConnectionOptions ( ) const
noexcept
Returns
a new connection-specific TLS context that can be configured with per-connection options (server name, peer verification, etc...)
Aws::Crt::Io::TlsContext::operator bool ( ) const
inlineexplicitnoexcept
Returns
true if the instance is in a valid state, false otherwise.
TlsContext& Aws::Crt::Io::TlsContext::operator= ( const TlsContext )
defaultnoexcept
TlsContext& Aws::Crt::Io::TlsContext::operator= ( TlsContext &&  )
defaultnoexcept

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