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

Public Member Functions

void start ()
 
 OPENVPN_SIMPLE_EXCEPTION (auth_failed)
 
 TestProtoServer (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 client_auth (Buffer &buf)
 

Private Member Functions

void server_auth (const std::string &username, const SafeString &password, const std::string &peer_info, const AuthCert::Ptr &auth_cert) 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 601 of file test_proto.cpp.

Constructor & Destructor Documentation

◆ TestProtoServer()

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

Definition at line 613 of file test_proto.cpp.

Member Function Documentation

◆ OPENVPN_SIMPLE_EXCEPTION()

TestProtoServer::OPENVPN_SIMPLE_EXCEPTION ( auth_failed  )

◆ server_auth()

void TestProtoServer::server_auth ( const std::string &  username,
const SafeString password,
const std::string &  peer_info,
const AuthCert::Ptr auth_cert 
)
inlineoverrideprivatevirtual

Called on server with credentials and peer info provided by client. Should be overriden by derived class if credentials are required.

Reimplemented from openvpn::ProtoContextCallbackInterface.

Definition at line 620 of file test_proto.cpp.

◆ start()

void TestProtoServer::start ( )
inline

Definition at line 605 of file test_proto.cpp.

Here is the caller graph for this function:

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