-
Notifications
You must be signed in to change notification settings - Fork 638
Expand file tree
/
Copy pathKeyLog.h
More file actions
37 lines (27 loc) · 995 Bytes
/
KeyLog.h
File metadata and controls
37 lines (27 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright (C) 1996-2026 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
#ifndef SQUID_SRC_SECURITY_KEYLOG_H
#define SQUID_SRC_SECURITY_KEYLOG_H
#include "log/CustomLog.h"
#include "log/forward.h"
#include "security/forward.h"
namespace Security {
/// a single tls_key_log directive configuration and logging handler
class KeyLog: public FormattedLog
{
public:
explicit KeyLog(ConfigParser&);
/// whether record() preconditions are currently satisfied
bool canLog() const { return logfile != nullptr; }
/// writes a single (but multi-line) key log entry
void record(const CommunicationSecrets &);
/// reproduces explicitly-configured squid.conf settings
void dump(std::ostream &) const;
};
} // namespace Security
#endif /* SQUID_SRC_SECURITY_KEYLOG_H */