|
XRootD
|
#include <cctype>#include <grp.h>#include <cstdio>#include <list>#include <vector>#include <unordered_set>#include <algorithm>#include <fcntl.h>#include <pwd.h>#include <sys/stat.h>#include <sys/types.h>#include <map>#include "XrdNet/XrdNetUtils.hh"#include "XrdOuc/XrdOucCRC.hh"#include "XrdOuc/XrdOucEnv.hh"#include "XrdOuc/XrdOucSHA3.hh"#include "XrdOuc/XrdOucStream.hh"#include "XrdOuc/XrdOucString.hh"#include "XrdOuc/XrdOucUtils.hh"#include "XrdOuc/XrdOucPrivateUtils.hh"#include "XrdSys/XrdSysE2T.hh"#include "XrdSys/XrdSysError.hh"#include "XrdSys/XrdSysPlatform.hh"#include "XrdSys/XrdSysPthread.hh"
Include dependency graph for XrdOucUtils.cc:Go to the source code of this file.
Macros | |
| #define | ENODATA ENOATTR |
| #define | SHFT(k) |
| #define | SHFT(k, m) |
Functions | |
| std::string | obfuscate (const std::string &input, const std::vector< std::regex > ®exes) |
| std::string | obfuscateAuth (const std::string &input) |
Variables | |
| static const std::vector< std::regex > | authObfuscationRegexes |
| static const std::string | OBFUSCATION_STR = "REDACTED" |
| #define ENODATA ENOATTR |
Definition at line 63 of file XrdOucUtils.cc.
| #define SHFT | ( | k | ) |
Referenced by XrdOucUtils::Log10(), and XrdOucUtils::Log2().
| #define SHFT | ( | k, | |
| m ) |
| std::string obfuscate | ( | const std::string & | input, |
| const std::vector< std::regex > & | regexes ) |
Use this function to obfuscate any string containing key-values with OBFUSCATION_STR
| input | the string to obfuscate |
| regexes | the obfuscation regexes to apply to replace the value with OBFUSCATION_STR. The key should be a regex group e.g: "(authz=)" Have a look at obfuscateAuth for more examples |
Definition at line 1439 of file XrdOucUtils.cc.
References OBFUSCATION_STR.
Referenced by obfuscateAuth().
Here is the caller graph for this function:| std::string obfuscateAuth | ( | const std::string & | input | ) |
PRIVATE HEADER for utility functions, implementation in XrdOucUtils.cc Obfuscates strings containing "authz=value", "Authorization: value", "TransferHeaderAuthorization: value", "WhateverAuthorization: value" in a case insensitive way.
| input | the string to obfuscate |
Definition at line 1449 of file XrdOucUtils.cc.
References authObfuscationRegexes, and obfuscate().
Referenced by XrdPfc::Cache::Attach(), XrdCl::URL::FromString(), XrdCl::URL::GetObfuscatedURL(), XrdCl::Utils::LogPropertyList(), main(), XrdHttpProtocol::Process(), XrdHttpReq::ProcessHTTPReq(), and XrdCl::Message::SetDescription().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 123 of file XrdOucUtils.cc.
Referenced by obfuscateAuth().
|
static |
Definition at line 118 of file XrdOucUtils.cc.
Referenced by obfuscate().