#include "squid.h"
#include "base/CharacterSet.h"
#include "base/IoManip.h"
#include "security/CommunicationSecrets.h"
#include "security/Session.h"
#include <ostream>
![](CommunicationSecrets_8cc__incl.png)
Go to the source code of this file.
Functions | |
static void | PrintSecret (std::ostream &os, const SBuf &secret) |
writes the given secret (in hex) or, if there is no secret, a placeholder More... | |
static void | IgnorePlaceholder (SBuf &secret) |
Function Documentation
◆ IgnorePlaceholder()
|
static |
Clears the given secret if it is likely to contain no secret information. When asked for a secret too early, OpenSSL (successfully!) returns a copy of the secret storage (filled with zeros) rather than an actual secret.
Definition at line 104 of file CommunicationSecrets.cc.
References CharacterSet::add(), SBuf::clear(), SBuf::findFirstNotOf(), and SBuf::npos.
Referenced by Security::CommunicationSecrets::getClientRandom(), Security::CommunicationSecrets::getMasterKey(), and Security::CommunicationSecrets::getSessionId().
◆ PrintSecret()
|
static |
Definition at line 66 of file CommunicationSecrets.cc.
References SBuf::isEmpty(), SBuf::length(), PrintHex(), and SBuf::rawContent().
Referenced by Security::CommunicationSecrets::record().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products