OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::MbedTLSPKI::DH Class Reference

#include <dh.hpp>

Inheritance diagram for openvpn::MbedTLSPKI::DH:
[legend]
Collaboration diagram for openvpn::MbedTLSPKI::DH:
[legend]

Public Types

typedef RCPtr< DHPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 DH ()
 
 DH (const std::string &dh_txt, const std::string &title)
 
void parse (const std::string &dh_txt, const std::string &title)
 
std::string extract () const
 
mbedtls_dhm_context * get () const
 
 ~DH ()
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Private Member Functions

void alloc ()
 
void dealloc ()
 

Private Attributes

mbedtls_dhm_context * dhc
 
std::string pem_dhc
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

Definition at line 30 of file dh.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 33 of file dh.hpp.

Constructor & Destructor Documentation

◆ DH() [1/2]

openvpn::MbedTLSPKI::DH::DH ( )
inline

Definition at line 35 of file dh.hpp.

◆ DH() [2/2]

openvpn::MbedTLSPKI::DH::DH ( const std::string &  dh_txt,
const std::string &  title 
)
inline

Definition at line 40 of file dh.hpp.

◆ ~DH()

openvpn::MbedTLSPKI::DH::~DH ( )
inline

Definition at line 86 of file dh.hpp.

Member Function Documentation

◆ alloc()

void openvpn::MbedTLSPKI::DH::alloc ( )
inlineprivate

Definition at line 92 of file dh.hpp.

Here is the caller graph for this function:

◆ dealloc()

void openvpn::MbedTLSPKI::DH::dealloc ( )
inlineprivate

Definition at line 101 of file dh.hpp.

Here is the caller graph for this function:

◆ extract()

std::string openvpn::MbedTLSPKI::DH::extract ( ) const
inline

Definition at line 76 of file dh.hpp.

◆ get()

mbedtls_dhm_context * openvpn::MbedTLSPKI::DH::get ( ) const
inline

Definition at line 81 of file dh.hpp.

◆ parse()

void openvpn::MbedTLSPKI::DH::parse ( const std::string &  dh_txt,
const std::string &  title 
)
inline

Definition at line 54 of file dh.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ dhc

mbedtls_dhm_context* openvpn::MbedTLSPKI::DH::dhc
private

Definition at line 111 of file dh.hpp.

◆ pem_dhc

std::string openvpn::MbedTLSPKI::DH::pem_dhc
private

Definition at line 112 of file dh.hpp.


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