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

#include <authcert.hpp>

Public Types

enum  Type {
  OK = 0 , EXPIRED , BAD_CERT_TYPE , CERT_FAIL ,
  SNI_ERROR , N
}
 

Public Member Functions

void add_fail (const size_t depth, const Type new_code, std::string reason)
 
bool is_fail () const
 
Type get_code () const
 
std::string to_string (const bool use_prefix) const
 

Static Public Member Functions

static std::string render_code (const Type code)
 

Private Attributes

Type code {OK}
 
std::vector< std::string > errors
 

Detailed Description

Definition at line 48 of file authcert.hpp.

Member Enumeration Documentation

◆ Type

Enumerator
OK 
EXPIRED 
BAD_CERT_TYPE 
CERT_FAIL 
SNI_ERROR 

Definition at line 53 of file authcert.hpp.

Member Function Documentation

◆ add_fail()

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

Definition at line 63 of file authcert.hpp.

◆ get_code()

Type openvpn::AuthCert::Fail::get_code ( ) const
inline

Definition at line 84 of file authcert.hpp.

◆ is_fail()

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

Definition at line 79 of file authcert.hpp.

◆ render_code()

static std::string openvpn::AuthCert::Fail::render_code ( const Type  code)
inlinestatic

Definition at line 113 of file authcert.hpp.

Here is the caller graph for this function:

◆ to_string()

std::string openvpn::AuthCert::Fail::to_string ( const bool  use_prefix) const
inline

Definition at line 89 of file authcert.hpp.

Member Data Documentation

◆ code

Type openvpn::AuthCert::Fail::code {OK}
private

Definition at line 132 of file authcert.hpp.

◆ errors

std::vector<std::string> openvpn::AuthCert::Fail::errors
private

Definition at line 133 of file authcert.hpp.


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