OpenVPN 3 Core Library
Loading...
Searching...
No Matches
TestProtoClient Class Reference
Inheritance diagram for TestProtoClient:
[legend]
Collaboration diagram for TestProtoClient:
[legend]

Public Member Functions

 TestProtoClient (const ProtoContext::ProtoConfig::Ptr &config, const SessionStats::Ptr &stats)
 
- Public Member Functions inherited from TestProto
 OPENVPN_EXCEPTION (session_invalidated)
 
 TestProto (const ProtoContext::ProtoConfig::Ptr &config, const SessionStats::Ptr &stats)
 
void reset ()
 
void initial_app_send (const char *msg)
 
void app_send_templ_init (const char *msg)
 
void app_send_templ ()
 
bool do_housekeeping ()
 
void control_send (BufferPtr &&app_bp)
 
void control_send (BufferAllocated &&app_buf)
 
BufferPtr data_encrypt_string (const char *str)
 
void data_encrypt (BufferAllocated &in_out)
 
void data_decrypt (const ProtoContext::PacketType &type, BufferAllocated &in_out)
 
size_t net_bytes () const
 
size_t app_bytes () const
 
size_t data_bytes () const
 
size_t n_control_recv () const
 
size_t n_control_send () const
 
const char * progress () const
 
void finalize ()
 
void check_invalidated ()
 
void disable_xmit ()
 
- Public Member Functions inherited from openvpn::ProtoContextCallbackInterface
virtual ~ProtoContextCallbackInterface ()=default
 
virtual void server_auth (const std::string &username, const SafeString &password, const std::string &peer_info, const AuthCert::Ptr &auth_cert)
 

Private Types

typedef TestProto Base
 

Private Member Functions

void client_auth (Buffer &buf) override
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::ProtoContextCallbackInterface
static void write_empty_string (Buffer &buf)
 
- Public Attributes inherited from TestProto
ProtoContext proto_context
 
std::deque< BufferPtrnet_out
 
DroughtMeasure control_drought
 
DroughtMeasure data_drought
 

Detailed Description

Definition at line 580 of file test_proto.cpp.

Member Typedef Documentation

◆ Base

Definition at line 582 of file test_proto.cpp.

Constructor & Destructor Documentation

◆ TestProtoClient()

TestProtoClient::TestProtoClient ( const ProtoContext::ProtoConfig::Ptr config,
const SessionStats::Ptr &  stats 
)
inline

Definition at line 585 of file test_proto.cpp.

Member Function Documentation

◆ client_auth()

void TestProtoClient::client_auth ( Buffer buf)
inlineoverrideprivatevirtual

Called on client to request username/password credentials. Should be overridden by derived class if credentials are required. username and password should be written into buf with write_auth_string().

Reimplemented from openvpn::ProtoContextCallbackInterface.

Definition at line 592 of file test_proto.cpp.


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