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

Go to the source code of this file.

Macros

#define CERTDIR   UNITTEST_SOURCE_DIR "/pki"
 

Typedefs

typedef CertCRLListTemplate< OpenSSLPKI::X509List, OpenSSLPKI::CRLListCertCRLList
 

Functions

template<typename VEC >
VEC move_contents (VEC &src)
 
void move_contents (CertCRLList &dest, CertCRLList &src)
 
void test_cert_crl ()
 
void test_output_pem ()
 
void test_pkey ()
 
void test_dh ()
 
 TEST (PKI, crl)
 
 TEST (PKI, pkey)
 
 TEST (PKI, dh)
 

Variables

constexpr const char * testcert
 
static bool verbose_output = false
 

Macro Definition Documentation

◆ CERTDIR

#define CERTDIR   UNITTEST_SOURCE_DIR "/pki"

Definition at line 32 of file test_opensslpki.cpp.

Typedef Documentation

◆ CertCRLList

Function Documentation

◆ move_contents() [1/2]

void move_contents ( CertCRLList dest,
CertCRLList src 
)

Definition at line 26 of file test_opensslpki.cpp.

◆ move_contents() [2/2]

template<typename VEC >
VEC move_contents ( VEC &  src)

Definition at line 18 of file test_opensslpki.cpp.

Here is the caller graph for this function:

◆ TEST() [1/3]

TEST ( PKI  ,
crl   
)

Definition at line 148 of file test_opensslpki.cpp.

◆ TEST() [2/3]

TEST ( PKI  ,
dh   
)

Definition at line 158 of file test_opensslpki.cpp.

◆ TEST() [3/3]

TEST ( PKI  ,
pkey   
)

Definition at line 153 of file test_opensslpki.cpp.

◆ test_cert_crl()

void test_cert_crl ( )

Definition at line 34 of file test_opensslpki.cpp.

Here is the caller graph for this function:

◆ test_dh()

void test_dh ( )

Definition at line 121 of file test_opensslpki.cpp.

Here is the caller graph for this function:

◆ test_output_pem()

void test_output_pem ( )

Definition at line 80 of file test_opensslpki.cpp.

◆ test_pkey()

void test_pkey ( )

Definition at line 96 of file test_opensslpki.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ testcert

constexpr const char* testcert
constexpr
Initial value:
= "-----BEGIN CERTIFICATE-----\n"
"MIIBuzCCAUCgAwIBAgIUEwa9vm0C63Cc/kFu8lFmOKFUdccwCgYIKoZIzj0EAwIw\n"
"EzERMA8GA1UEAwwIdW5pdHRlc3QwIBcNMjQwNTE1MTA1NDM3WhgPMjA3OTAyMTYx\n"
"MDU0MzdaMBMxETAPBgNVBAMMCHVuaXR0ZXN0MHYwEAYHKoZIzj0CAQYFK4EEACID\n"
"YgAEEVRoVjNQeYLPBlst7a7vxm6KUT5TL8iDel5I7Vt0CD2saQ+E0oUrMrk/W7uB\n"
"FhbBDbKu+AiXBmudIjQbrx4JiNPD7wouGCY3Up6C6hdDMQAtPqIIWOGj/13OshyY\n"
"EX/eo1MwUTAdBgNVHQ4EFgQUONymlHRoIr+aGp7kss/Yl5gEOHQwHwYDVR0jBBgw\n"
"FoAUONymlHRoIr+aGp7kss/Yl5gEOHQwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjO\n"
"PQQDAgNpADBmAjEAx4NDBMtTW/4qeSdedxpNH4DCnI5iue+22UNTt/dGWBMzcYF7\n"
"xW53r2QVcCKzoJABAjEA7//UDtN8gZgfiYaCXh9Qwew8DSsn1+B9mY6e3hQQ00nJ\n"
"Qv3xi0OJFoAxAQBG0weY\n"
"-----END CERTIFICATE-----"

Definition at line 67 of file test_opensslpki.cpp.

◆ verbose_output

bool verbose_output = false
static

Definition at line 146 of file test_opensslpki.cpp.