OpenVPN 3 Core Library
|
Public Member Functions | |
void | start () |
OPENVPN_SIMPLE_EXCEPTION (auth_failed) | |
TestProtoServer (const ProtoContext::ProtoConfig::Ptr &config, const SessionStats::Ptr &stats) | |
![]() | |
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 () |
![]() | |
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 void | write_empty_string (Buffer &buf) |
![]() | |
ProtoContext | proto_context |
std::deque< BufferPtr > | net_out |
DroughtMeasure | control_drought |
DroughtMeasure | data_drought |
Definition at line 601 of file test_proto.cpp.
|
inline |
Definition at line 613 of file test_proto.cpp.
TestProtoServer::OPENVPN_SIMPLE_EXCEPTION | ( | auth_failed | ) |
|
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.
|
inline |