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

#include <options.hpp>

Public Member Functions

 Limits (const std::string &error_message, const std::uint64_t max_bytes_arg, const size_t extra_bytes_per_opt_arg, const size_t extra_bytes_per_term_arg, const size_t max_line_len_arg, const size_t max_directive_len_arg)
 
void add_bytes (const size_t n)
 
void add_string (const std::string &str)
 
void add_term ()
 
void add_opt ()
 
size_t get_max_line_len () const
 
std::uint64_t get_bytes () const
 
void validate_directive (const Option &opt)
 

Private Member Functions

void check_overflow ()
 
void error ()
 

Private Attributes

std::uint64_t bytes
 
const std::uint64_t max_bytes
 
const size_t extra_bytes_per_opt
 
const size_t extra_bytes_per_term
 
const size_t max_line_len
 
const size_t max_directive_len
 
const std::string err
 

Detailed Description

Definition at line 588 of file options.hpp.

Constructor & Destructor Documentation

◆ Limits()

openvpn::OptionList::Limits::Limits ( const std::string &  error_message,
const std::uint64_t  max_bytes_arg,
const size_t  extra_bytes_per_opt_arg,
const size_t  extra_bytes_per_term_arg,
const size_t  max_line_len_arg,
const size_t  max_directive_len_arg 
)
inline

Definition at line 591 of file options.hpp.

Member Function Documentation

◆ add_bytes()

void openvpn::OptionList::Limits::add_bytes ( const size_t  n)
inline

Definition at line 607 of file options.hpp.

Here is the caller graph for this function:

◆ add_opt()

void openvpn::OptionList::Limits::add_opt ( )
inline

Definition at line 625 of file options.hpp.

Here is the caller graph for this function:

◆ add_string()

void openvpn::OptionList::Limits::add_string ( const std::string &  str)
inline

Definition at line 613 of file options.hpp.

Here is the caller graph for this function:

◆ add_term()

void openvpn::OptionList::Limits::add_term ( )
inline

Definition at line 619 of file options.hpp.

◆ check_overflow()

void openvpn::OptionList::Limits::check_overflow ( )
inlineprivate

Definition at line 647 of file options.hpp.

Here is the caller graph for this function:

◆ error()

void openvpn::OptionList::Limits::error ( )
inlineprivate

Definition at line 653 of file options.hpp.

Here is the caller graph for this function:

◆ get_bytes()

std::uint64_t openvpn::OptionList::Limits::get_bytes ( ) const
inline

Definition at line 636 of file options.hpp.

Here is the caller graph for this function:

◆ get_max_line_len()

size_t openvpn::OptionList::Limits::get_max_line_len ( ) const
inline

Definition at line 631 of file options.hpp.

Here is the caller graph for this function:

◆ validate_directive()

void openvpn::OptionList::Limits::validate_directive ( const Option opt)
inline

Definition at line 641 of file options.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ bytes

std::uint64_t openvpn::OptionList::Limits::bytes
private

Definition at line 658 of file options.hpp.

◆ err

const std::string openvpn::OptionList::Limits::err
private

Definition at line 664 of file options.hpp.

◆ extra_bytes_per_opt

const size_t openvpn::OptionList::Limits::extra_bytes_per_opt
private

Definition at line 660 of file options.hpp.

◆ extra_bytes_per_term

const size_t openvpn::OptionList::Limits::extra_bytes_per_term
private

Definition at line 661 of file options.hpp.

◆ max_bytes

const std::uint64_t openvpn::OptionList::Limits::max_bytes
private

Definition at line 659 of file options.hpp.

◆ max_directive_len

const size_t openvpn::OptionList::Limits::max_directive_len
private

Definition at line 663 of file options.hpp.

◆ max_line_len

const size_t openvpn::OptionList::Limits::max_line_len
private

Definition at line 662 of file options.hpp.


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