OpenVPN 3 Core Library
Loading...
Searching...
No Matches
NullProtoCallback Class Reference

A ProtoContext needs one of these; it counts what the session puts on the wire. More...

Inheritance diagram for NullProtoCallback:
[legend]
Collaboration diagram for NullProtoCallback:
[legend]

Public Attributes

size_t n_sent = 0
 

Private Member Functions

void control_net_send (const Buffer &net_buf) override
 
void control_recv (BufferPtr &&app_bp) override
 
bool supports_epoch_data () override
 
void active (bool primary) override
 Called when KeyContext transitions to ACTIVE state.
 

Additional Inherited Members

- Public Member Functions inherited from openvpn::ProtoContextCallbackInterface
virtual ~ProtoContextCallbackInterface ()=default
 
virtual void client_auth (Buffer &buf)
 
virtual void server_auth (const std::string &username, const SafeString &password, const std::string &peer_info, const AuthCert::Ptr &auth_cert)
 
- Static Public Member Functions inherited from openvpn::ProtoContextCallbackInterface
static void write_empty_string (Buffer &buf)
 

Detailed Description

A ProtoContext needs one of these; it counts what the session puts on the wire.

Definition at line 769 of file test_psid_cookie.cpp.

Member Function Documentation

◆ active()

void NullProtoCallback::active ( bool  primary)
inlineoverrideprivatevirtual

Called when KeyContext transitions to ACTIVE state.

Implements openvpn::ProtoContextCallbackInterface.

Definition at line 786 of file test_psid_cookie.cpp.

◆ control_net_send()

void NullProtoCallback::control_net_send ( const Buffer net_buf)
inlineoverrideprivatevirtual

Sends out bytes to the network.

Implements openvpn::ProtoContextCallbackInterface.

Definition at line 775 of file test_psid_cookie.cpp.

◆ control_recv()

void NullProtoCallback::control_recv ( BufferPtr &&  app_bp)
inlineoverrideprivatevirtual

Implements openvpn::ProtoContextCallbackInterface.

Definition at line 779 of file test_psid_cookie.cpp.

◆ supports_epoch_data()

bool NullProtoCallback::supports_epoch_data ( )
inlineoverrideprivatevirtual

the protocol context needs to know if the parent and its tun/transport layer are able to support epoch key data format to properly handshake this protocol feature

Implements openvpn::ProtoContextCallbackInterface.

Definition at line 782 of file test_psid_cookie.cpp.

Member Data Documentation

◆ n_sent

size_t NullProtoCallback::n_sent = 0

Definition at line 772 of file test_psid_cookie.cpp.


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