KeyLog.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_SRC_SECURITY_KEYLOG_H
10#define SQUID_SRC_SECURITY_KEYLOG_H
11
12#include "log/CustomLog.h"
13#include "log/forward.h"
14#include "sbuf/SBuf.h"
15#include "security/forward.h"
16
17namespace Security {
18
20class KeyLog: public FormattedLog
21{
22public:
23 explicit KeyLog(ConfigParser&);
24
26 bool canLog() const { return logfile != nullptr; }
27
29 void record(const CommunicationSecrets &);
30
32 void dump(std::ostream &) const;
33};
34
35} // namespace Security
36
37#endif /* SQUID_SRC_SECURITY_KEYLOG_H */
38
Logfile * logfile
records writer
Definition: FormattedLog.h:55
a single tls_key_log directive configuration and logging handler
Definition: KeyLog.h:21
void dump(std::ostream &) const
reproduces explicitly-configured squid.conf settings
Definition: KeyLog.cc:59
KeyLog(ConfigParser &)
Definition: KeyLog.cc:25
void record(const CommunicationSecrets &)
writes a single (but multi-line) key log entry
Definition: KeyLog.cc:38
bool canLog() const
whether record() preconditions are currently satisfied
Definition: KeyLog.h:26
Network/connection security abstraction layer.
Definition: Connection.h:34

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors