OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::ProtoContext::PsidCookieHelper Class Reference

#include <proto.hpp>

Public Member Functions

 PsidCookieHelper (unsigned int op_field)
 
bool is_clients_initial_reset () const
 
bool is_tls_crypt_v2 () const noexcept
 Returns true if this is a TLS crypt V2 protocol packet.
 
bool supports_early_negotiation (const PacketIDControl &pidc) const noexcept
 Returns true if the peer supports early negotiation (i.e. is able to reply with CONTROL_WKC_V1).
 
bool is_clients_server_reset_ack () const
 

Static Public Member Functions

static void prepend_TLV (Buffer &payload)
 Adds an {EARLY_NEG_FLAGS, 2, EARLY_NEG_FLAG_RESEND_WKC} TLV to a payload buffer (use with TLS crypt V2).
 
static unsigned char get_server_hard_reset_opfield ()
 

Private Attributes

const unsigned int op_code_
 
const unsigned int key_id_
 

Detailed Description

Definition at line 3619 of file proto.hpp.

Constructor & Destructor Documentation

◆ PsidCookieHelper()

openvpn::ProtoContext::PsidCookieHelper::PsidCookieHelper ( unsigned int  op_field)
inline

Definition at line 3622 of file proto.hpp.

Member Function Documentation

◆ get_server_hard_reset_opfield()

static unsigned char openvpn::ProtoContext::PsidCookieHelper::get_server_hard_reset_opfield ( )
inlinestatic

Definition at line 3662 of file proto.hpp.

Here is the caller graph for this function:

◆ is_clients_initial_reset()

bool openvpn::ProtoContext::PsidCookieHelper::is_clients_initial_reset ( ) const
inline

Definition at line 3627 of file proto.hpp.

Here is the caller graph for this function:

◆ is_clients_server_reset_ack()

bool openvpn::ProtoContext::PsidCookieHelper::is_clients_server_reset_ack ( ) const
inline

Definition at line 3644 of file proto.hpp.

Here is the caller graph for this function:

◆ is_tls_crypt_v2()

bool openvpn::ProtoContext::PsidCookieHelper::is_tls_crypt_v2 ( ) const
inlinenoexcept

Returns true if this is a TLS crypt V2 protocol packet.

Definition at line 3633 of file proto.hpp.

Here is the caller graph for this function:

◆ prepend_TLV()

static void openvpn::ProtoContext::PsidCookieHelper::prepend_TLV ( Buffer payload)
inlinestatic

Adds an {EARLY_NEG_FLAGS, 2, EARLY_NEG_FLAG_RESEND_WKC} TLV to a payload buffer (use with TLS crypt V2).

Definition at line 3650 of file proto.hpp.

Here is the caller graph for this function:

◆ supports_early_negotiation()

bool openvpn::ProtoContext::PsidCookieHelper::supports_early_negotiation ( const PacketIDControl pidc) const
inlinenoexcept

Returns true if the peer supports early negotiation (i.e. is able to reply with CONTROL_WKC_V1).

Definition at line 3639 of file proto.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ key_id_

const unsigned int openvpn::ProtoContext::PsidCookieHelper::key_id_
private

Definition at line 3669 of file proto.hpp.

◆ op_code_

const unsigned int openvpn::ProtoContext::PsidCookieHelper::op_code_
private

Definition at line 3668 of file proto.hpp.


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