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

Go to the source code of this file.

Functions

static bool xfer_oneway (SslApiBuilder &sender, SslApiBuilder &recv, std::string out)
 
static void xfer (SslApiBuilder &cli, SslApiBuilder &serv)
 
static void xfer (AccHandshaker &cli, AccHandshaker &serv)
 
SSLLib::SSLAPI::Config::Ptr CreateServerConfig (const std::string &pvtKey, const std::string &cert, const std::string &ca, Frame::Ptr &&frm)
 
SSLLib::SSLAPI::Config::Ptr CreateClientConfig (const std::string &pvtKey, const std::string &cert, const std::string &ca, Frame::Ptr &&frm)
 
 TEST (AccCertCheckSsl, SslApiBuilder_ssl_handshake)
 
 TEST (AccCertCheckSsl, AccHandshaker_ssl_handshake)
 
 TEST (AccCertCheckSsl, AccHandshaker_ssl_handshake_no_cli_ca)
 
 TEST (AccCertCheckSsl, AccHandshaker_ssl_handshake_fail)
 

Variables

const std::string pvt_key_txt
 
const std::string fail_pvt_key_txt
 
const std::string cert_txt
 
const std::string fail_cert_txt
 
const std::string certcrl_txt
 
const std::string dhparam_txt
 
static constexpr int debug_output = 0
 

Function Documentation

◆ CreateClientConfig()

SSLLib::SSLAPI::Config::Ptr CreateClientConfig ( const std::string &  pvtKey,
const std::string &  cert,
const std::string &  ca,
Frame::Ptr &&  frm 
)

Definition at line 322 of file test_acc_certcheck.cpp.

Here is the caller graph for this function:

◆ CreateServerConfig()

SSLLib::SSLAPI::Config::Ptr CreateServerConfig ( const std::string &  pvtKey,
const std::string &  cert,
const std::string &  ca,
Frame::Ptr &&  frm 
)

Definition at line 298 of file test_acc_certcheck.cpp.

Here is the caller graph for this function:

◆ TEST() [1/4]

TEST ( AccCertCheckSsl  ,
AccHandshaker_ssl_handshake   
)

Definition at line 373 of file test_acc_certcheck.cpp.

◆ TEST() [2/4]

TEST ( AccCertCheckSsl  ,
AccHandshaker_ssl_handshake_fail   
)

Definition at line 415 of file test_acc_certcheck.cpp.

◆ TEST() [3/4]

TEST ( AccCertCheckSsl  ,
AccHandshaker_ssl_handshake_no_cli_ca   
)

Definition at line 394 of file test_acc_certcheck.cpp.

◆ TEST() [4/4]

TEST ( AccCertCheckSsl  ,
SslApiBuilder_ssl_handshake   
)

Definition at line 349 of file test_acc_certcheck.cpp.

◆ xfer() [1/2]

static void xfer ( AccHandshaker cli,
AccHandshaker serv 
)
inlinestatic

Definition at line 272 of file test_acc_certcheck.cpp.

◆ xfer() [2/2]

static void xfer ( SslApiBuilder cli,
SslApiBuilder serv 
)
inlinestatic

Definition at line 264 of file test_acc_certcheck.cpp.

Here is the caller graph for this function:

◆ xfer_oneway()

static bool xfer_oneway ( SslApiBuilder sender,
SslApiBuilder recv,
std::string  out 
)
inlinestatic

Definition at line 238 of file test_acc_certcheck.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ cert_txt

const std::string cert_txt

Definition at line 125 of file test_acc_certcheck.cpp.

◆ certcrl_txt

const std::string certcrl_txt

Definition at line 193 of file test_acc_certcheck.cpp.

◆ debug_output

constexpr int debug_output = 0
staticconstexpr

Definition at line 236 of file test_acc_certcheck.cpp.

◆ dhparam_txt

const std::string dhparam_txt
Initial value:
= R"(-----BEGIN DH PARAMETERS-----
MIIBDAKCAQEA9WXZvihl5pltdS4C+Dc+Ki3KOuH0aBfSzmth/B3O0+oTN3CZXAak
WyK6dCCtXeBZ3ih3eNVO69BgoNVdbxuPIUWxo3EWFt6LteASgkjCEyTmrNd/aKAE
pS06RgsZcWs/Ps9iwcVFyE6kMi9Cbf3D2wwJT50kJmkEov+4cOH3NQVpS231I58x
rHMEMtNDFcJYCAEIG3cKqfX9unAgZUsDoLtyvfgvHV29koZxnmMt0+5f0qnezcnP
I/+4kAlXuAKdhsXohHeBhC2ijg/kTOMDxEbEVv+SkCIUyM+dB8UtlPKOH9HEL5Xi
+BpDSqO6Bha5+NAVUU7OdDsnzRwSWaD6lwIBAgICAOE=
-----END DH PARAMETERS-----)"

Definition at line 227 of file test_acc_certcheck.cpp.

◆ fail_cert_txt

const std::string fail_cert_txt

Definition at line 159 of file test_acc_certcheck.cpp.

◆ fail_pvt_key_txt

const std::string fail_pvt_key_txt

Definition at line 72 of file test_acc_certcheck.cpp.

◆ pvt_key_txt

const std::string pvt_key_txt

Definition at line 19 of file test_acc_certcheck.cpp.