OpenVPN 3 Core Library
Loading...
Searching...
No Matches
test_b64.cpp File Reference
#include "test_common.hpp"
#include <iostream>
#include <memory>
#include <openvpn/common/exception.hpp>
#include <openvpn/common/base64.hpp>
#include <mbedtls/base64.h>
Include dependency graph for test_b64.cpp:

Go to the source code of this file.

Functions

std::string ssllib_b64enc (const char *text, size_t textlen)
 
void b64_test (const Base64 &b64, const std::string &text)
 
void b64_test_binary (const Base64 &b64, const char *data, unsigned int len)
 
 TEST (Base64, tooshortdest)
 
void b64_test_bad_decode (const Base64 &b64, const std::string &text)
 
 TEST (Base64, baddecode)
 
 TEST (Base64, encode)
 
 TEST (Base64, binary_data)
 

Function Documentation

◆ b64_test()

void b64_test ( const Base64 b64,
const std::string &  text 
)

Definition at line 81 of file test_b64.cpp.

Here is the caller graph for this function:

◆ b64_test_bad_decode()

void b64_test_bad_decode ( const Base64 b64,
const std::string &  text 
)

Definition at line 116 of file test_b64.cpp.

Here is the caller graph for this function:

◆ b64_test_binary()

void b64_test_binary ( const Base64 b64,
const char *  data,
unsigned int  len 
)

Definition at line 91 of file test_b64.cpp.

Here is the caller graph for this function:

◆ ssllib_b64enc()

std::string ssllib_b64enc ( const char *  text,
size_t  textlen 
)

Definition at line 59 of file test_b64.cpp.

Here is the caller graph for this function:

◆ TEST() [1/4]

TEST ( Base64  ,
baddecode   
)

Definition at line 122 of file test_b64.cpp.

◆ TEST() [2/4]

TEST ( Base64  ,
binary_data   
)

Definition at line 163 of file test_b64.cpp.

◆ TEST() [3/4]

TEST ( Base64  ,
encode   
)

Definition at line 135 of file test_b64.cpp.

◆ TEST() [4/4]

TEST ( Base64  ,
tooshortdest   
)

Definition at line 107 of file test_b64.cpp.