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

The hook an embedder installs, standing in for PG's. More...

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

Public Member Functions

TLSCryptMetadata::Ptr new_obj () 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

bool accept = true
 verify() verdict handed to the recorders produced here
 
unsigned int n_created = 0
 
RCPtr< MetadataRecorderlast
 

Additional Inherited Members

- Public Types inherited from openvpn::TLSCryptMetadataFactory
using Ptr = RCPtr< TLSCryptMetadataFactory >
 
- 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

The hook an embedder installs, standing in for PG's.

Keeps the recorders it makes reachable from the test: n_created counts how many records were put to the hook at all, which is what says whether a packet reached it that should not have, and last holds the verdict and payload of the most recent one.

Definition at line 416 of file test_psid_cookie.cpp.

Member Function Documentation

◆ new_obj()

TLSCryptMetadata::Ptr MetadataRecorderFactory::new_obj ( )
inlineoverridevirtual

Implements openvpn::TLSCryptMetadataFactory.

Definition at line 419 of file test_psid_cookie.cpp.

Member Data Documentation

◆ accept

bool MetadataRecorderFactory::accept = true

verify() verdict handed to the recorders produced here

Definition at line 426 of file test_psid_cookie.cpp.

◆ last

RCPtr<MetadataRecorder> MetadataRecorderFactory::last

Definition at line 428 of file test_psid_cookie.cpp.

◆ n_created

unsigned int MetadataRecorderFactory::n_created = 0

Definition at line 427 of file test_psid_cookie.cpp.


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