|
OpenVPN 3 Core Library
|
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< BufferPtr > | net_out |
| DroughtMeasure | control_drought |
| DroughtMeasure | data_drought |
Definition at line 580 of file test_proto.cpp.
|
private |
Definition at line 582 of file test_proto.cpp.
|
inline |
Definition at line 585 of file test_proto.cpp.
|
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.