OpenVPN 3 Core Library
Loading...
Searching...
No Matches
test_validatecreds.cpp File Reference
Include dependency graph for test_validatecreds.cpp:

Go to the source code of this file.

Functions

void validate (const ValidateCreds::Type type, const bool expected_result, const std::string &cred, const bool strict)
 
 TEST (misc, creds1)
 
void validate_creds (std::string username, std::string password, const bool expected_result, const bool strict)
 
 TEST (misc, creds2)
 
void validate_utf8 (const std::string &str, const size_t max_len_flags, const bool expected_result)
 
 TEST (misc, creds3)
 

Variables

static bool verbose = false
 

Function Documentation

◆ TEST() [1/3]

TEST ( misc  ,
creds1   
)

Definition at line 24 of file test_validatecreds.cpp.

◆ TEST() [2/3]

TEST ( misc  ,
creds2   
)

Definition at line 52 of file test_validatecreds.cpp.

◆ TEST() [3/3]

TEST ( misc  ,
creds3   
)

Definition at line 73 of file test_validatecreds.cpp.

◆ validate()

void validate ( const ValidateCreds::Type  type,
const bool  expected_result,
const std::string &  cred,
const bool  strict 
)

Definition at line 16 of file test_validatecreds.cpp.

Here is the caller graph for this function:

◆ validate_creds()

void validate_creds ( std::string  username,
std::string  password,
const bool  expected_result,
const bool  strict 
)

Definition at line 42 of file test_validatecreds.cpp.

Here is the caller graph for this function:

◆ validate_utf8()

void validate_utf8 ( const std::string &  str,
const size_t  max_len_flags,
const bool  expected_result 
)

Definition at line 65 of file test_validatecreds.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ verbose

bool verbose = false
static

Definition at line 14 of file test_validatecreds.cpp.