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

Records what unwrap_tls_crypt_wkc() handed the hook, and answers with accept. More...

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

Public Member Functions

 MetadataRecorder (bool accept)
 
bool verify (int type, Buffer &metadata) const override
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Public Attributes

unsigned int n_calls = 0
 
int type_seen = -2
 -1 would mean "WKc carried no metadata"
 
std::string payload_seen
 

Private Attributes

const bool accept_
 what verify() returns
 

Additional Inherited Members

- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
using Ptr = RCPtr< RC >
 
- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

Records what unwrap_tls_crypt_wkc() handed the hook, and answers with accept.

Definition at line 385 of file test_psid_cookie.cpp.

Constructor & Destructor Documentation

◆ MetadataRecorder()

MetadataRecorder::MetadataRecorder ( bool  accept)
inlineexplicit

Definition at line 388 of file test_psid_cookie.cpp.

Member Function Documentation

◆ verify()

bool MetadataRecorder::verify ( int  type,
Buffer metadata 
) const
inlineoverridevirtual

Reimplemented from openvpn::TLSCryptMetadata.

Definition at line 393 of file test_psid_cookie.cpp.

Member Data Documentation

◆ accept_

const bool MetadataRecorder::accept_
private

what verify() returns

Definition at line 406 of file test_psid_cookie.cpp.

◆ n_calls

unsigned int MetadataRecorder::n_calls = 0
mutable

Definition at line 401 of file test_psid_cookie.cpp.

◆ payload_seen

std::string MetadataRecorder::payload_seen
mutable

Definition at line 403 of file test_psid_cookie.cpp.

◆ type_seen

int MetadataRecorder::type_seen = -2
mutable

-1 would mean "WKc carried no metadata"

Definition at line 402 of file test_psid_cookie.cpp.


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