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

#include <authcert.hpp>

Inheritance diagram for openvpn::AuthCert:
[legend]
Collaboration diagram for openvpn::AuthCert:
[legend]

Classes

class  Fail
 
class  Serial
 

Public Types

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

Public Member Functions

 AuthCert ()
 
 AuthCert (std::string cn_arg, const std::int64_t sn)
 
bool defined () const
 
bool sni_defined () const
 
bool cn_defined () const
 
template<typename T >
issuer_fp_prefix () const
 
bool sn_defined () const
 
std::int64_t serial_number_as_int64 () const
 
const Serialget_serial () const
 
bool operator== (const AuthCert &other) const
 
bool operator!= (const AuthCert &other) const
 
std::string to_string () const
 
std::string serial_number_str () const
 
std::string issuer_fp_str (const bool openssl_fmt) const
 
std::string normalize_cn () const
 
std::string sni_client_name () const
 
const std::string & get_sni () const
 
const std::string & get_cn () const
 
const X509Track::Setx509_track_get () const
 
std::unique_ptr< X509Track::Setx509_track_take_ownership ()
 
void add_fail (const size_t depth, const Fail::Type new_code, std::string reason)
 
bool is_fail () const
 
const Failget_fail () const
 
std::string fail_str () const
 
- 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 Attributes

bool defined_
 
std::string sni
 
std::string cn
 
Serial serial
 
std::uint8_t issuer_fp [20]
 
std::unique_ptr< Failfail
 
std::unique_ptr< X509Track::Setx509_track
 
SNI::Metadata::UPtr sni_metadata
 

Friends

class OpenSSLContext
 
class MbedTLSContext
 

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 39 of file authcert.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 46 of file authcert.hpp.

Constructor & Destructor Documentation

◆ AuthCert() [1/2]

openvpn::AuthCert::AuthCert ( )
inline

Definition at line 340 of file authcert.hpp.

◆ AuthCert() [2/2]

openvpn::AuthCert::AuthCert ( std::string  cn_arg,
const std::int64_t  sn 
)
inline

Definition at line 346 of file authcert.hpp.

Member Function Documentation

◆ add_fail()

void openvpn::AuthCert::add_fail ( const size_t  depth,
const Fail::Type  new_code,
std::string  reason 
)
inline

Definition at line 481 of file authcert.hpp.

Here is the caller graph for this function:

◆ cn_defined()

bool openvpn::AuthCert::cn_defined ( ) const
inline

Definition at line 376 of file authcert.hpp.

◆ defined()

bool openvpn::AuthCert::defined ( ) const
inline

Definition at line 366 of file authcert.hpp.

Here is the caller graph for this function:

◆ fail_str()

std::string openvpn::AuthCert::fail_str ( ) const
inline

Definition at line 498 of file authcert.hpp.

◆ get_cn()

const std::string & openvpn::AuthCert::get_cn ( ) const
inline

Definition at line 466 of file authcert.hpp.

◆ get_fail()

const Fail * openvpn::AuthCert::get_fail ( ) const
inline

Definition at line 493 of file authcert.hpp.

◆ get_serial()

const Serial & openvpn::AuthCert::get_serial ( ) const
inline

Definition at line 397 of file authcert.hpp.

◆ get_sni()

const std::string & openvpn::AuthCert::get_sni ( ) const
inline

Definition at line 461 of file authcert.hpp.

◆ is_fail()

bool openvpn::AuthCert::is_fail ( ) const
inline

Definition at line 488 of file authcert.hpp.

◆ issuer_fp_prefix()

template<typename T >
T openvpn::AuthCert::issuer_fp_prefix ( ) const
inline

Definition at line 382 of file authcert.hpp.

◆ issuer_fp_str()

std::string openvpn::AuthCert::issuer_fp_str ( const bool  openssl_fmt) const
inline

Definition at line 435 of file authcert.hpp.

Here is the caller graph for this function:

◆ normalize_cn()

std::string openvpn::AuthCert::normalize_cn ( ) const
inline

Definition at line 443 of file authcert.hpp.

Here is the caller graph for this function:

◆ operator!=()

bool openvpn::AuthCert::operator!= ( const AuthCert other) const
inline

Definition at line 410 of file authcert.hpp.

◆ operator==()

bool openvpn::AuthCert::operator== ( const AuthCert other) const
inline

Definition at line 402 of file authcert.hpp.

Here is the caller graph for this function:

◆ serial_number_as_int64()

std::int64_t openvpn::AuthCert::serial_number_as_int64 ( ) const
inline

Definition at line 392 of file authcert.hpp.

◆ serial_number_str()

std::string openvpn::AuthCert::serial_number_str ( ) const
inline

Definition at line 430 of file authcert.hpp.

◆ sn_defined()

bool openvpn::AuthCert::sn_defined ( ) const
inline

Definition at line 387 of file authcert.hpp.

◆ sni_client_name()

std::string openvpn::AuthCert::sni_client_name ( ) const
inline

Definition at line 453 of file authcert.hpp.

◆ sni_defined()

bool openvpn::AuthCert::sni_defined ( ) const
inline

Definition at line 371 of file authcert.hpp.

◆ to_string()

std::string openvpn::AuthCert::to_string ( ) const
inline

Definition at line 415 of file authcert.hpp.

◆ x509_track_get()

const X509Track::Set * openvpn::AuthCert::x509_track_get ( ) const
inline

Definition at line 471 of file authcert.hpp.

◆ x509_track_take_ownership()

std::unique_ptr< X509Track::Set > openvpn::AuthCert::x509_track_take_ownership ( )
inline

Definition at line 476 of file authcert.hpp.

Friends And Related Symbol Documentation

◆ MbedTLSContext

friend class MbedTLSContext
friend

Definition at line 44 of file authcert.hpp.

◆ OpenSSLContext

friend class OpenSSLContext
friend

Definition at line 43 of file authcert.hpp.

Member Data Documentation

◆ cn

std::string openvpn::AuthCert::cn
private

Definition at line 522 of file authcert.hpp.

◆ defined_

bool openvpn::AuthCert::defined_
private

Definition at line 519 of file authcert.hpp.

◆ fail

std::unique_ptr<Fail> openvpn::AuthCert::fail
private

Definition at line 526 of file authcert.hpp.

◆ issuer_fp

std::uint8_t openvpn::AuthCert::issuer_fp[20]
private

Definition at line 524 of file authcert.hpp.

◆ serial

Serial openvpn::AuthCert::serial
private

Definition at line 523 of file authcert.hpp.

◆ sni

std::string openvpn::AuthCert::sni
private

Definition at line 521 of file authcert.hpp.

◆ sni_metadata

SNI::Metadata::UPtr openvpn::AuthCert::sni_metadata
private

Definition at line 528 of file authcert.hpp.

◆ x509_track

std::unique_ptr<X509Track::Set> openvpn::AuthCert::x509_track
private

Definition at line 527 of file authcert.hpp.


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