CommunicationSecrets.cc File Reference
#include "squid.h"
#include "base/CharacterSet.h"
#include "security/CommunicationSecrets.h"
#include "security/Session.h"
#include <ostream>
Include dependency graph for CommunicationSecrets.cc:

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 void IgnorePlaceholder ( SBuf secret)
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 103 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 void PrintSecret ( std::ostream &  os,
const SBuf secret 
)
static

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors