manages collecting and logging secrets of a TLS connection to tls_key_log More...

#include <KeyLogger.h>

Collaboration diagram for Security::KeyLogger:

Public Member Functions

void checkpoint (const Connection &, const Acl::ChecklistFiller &)
 

Private Member Functions

void maybeLog (const Connection &, const Acl::ChecklistFiller &)
 (slowly checks logging preconditions and) logs if possible More...
 
bool shouldLog (const Acl::ChecklistFiller &) const
 (slowly checks) whether logging is possible now More...
 

Private Attributes

CommunicationSecrets secrets
 connection secrets learned so far More...
 
bool done_ = false
 whether to prevent further logging attempts More...
 
bool wanted_ = false
 whether we know that the admin wants us to log this connection keys More...
 

Detailed Description

Definition at line 23 of file KeyLogger.h.

Member Function Documentation

◆ checkpoint()

void Security::KeyLogger::checkpoint ( const Connection sconn,
const Acl::ChecklistFiller caller 
)
inline

(quickly decides whether logging might be needed and) logs if possible this method is a performance optimization wrapper for slower maybeLog()

Definition at line 50 of file KeyLogger.h.

References done_, and maybeLog().

Referenced by ConnStateData::acceptTls().

◆ maybeLog()

void Security::KeyLogger::maybeLog ( const Connection sconn,
const Acl::ChecklistFiller caller 
)
private

◆ shouldLog()

bool Security::KeyLogger::shouldLog ( const Acl::ChecklistFiller caller) const
private

Member Data Documentation

◆ done_

bool Security::KeyLogger::done_ = false
private

Definition at line 41 of file KeyLogger.h.

Referenced by checkpoint(), and maybeLog().

◆ secrets

CommunicationSecrets Security::KeyLogger::secrets
private

Definition at line 38 of file KeyLogger.h.

Referenced by maybeLog().

◆ wanted_

bool Security::KeyLogger::wanted_ = false
mutableprivate

Definition at line 44 of file KeyLogger.h.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors