![]() |
CernVM-FS
2.13.0
|
#include <whitelist.h>
Public Types | |
enum | Status { kStNone, kStAvailable } |
Public Member Functions | |
Whitelist (const std::string &fqrn, download::DownloadManager *download_manager, signature::SignatureManager *signature_manager) | |
~Whitelist () | |
Whitelist (const Whitelist &other) | |
Whitelist & | operator= (const Whitelist &other) |
Failures | LoadUrl (const std::string &base_url) |
Failures | LoadMem (const std::string &whitelist) |
void | CopyBuffers (unsigned *plain_size, unsigned char **plain_buf, unsigned *pkcs7_size, unsigned char **pkcs7_buf) const |
time_t | expires () const |
bool | IsExpired () const |
Failures | VerifyLoadedCertificate () const |
std::string | ExportString () const |
Status | status () const |
Static Public Member Functions | |
static std::string | CreateString (const std::string &fqrn, int validity_days, shash::Algorithms hash_algorithm, signature::SignatureManager *signature_manager) |
Private Member Functions | |
FRIEND_TEST (T_Whitelist, ParseWhitelist) | |
Whitelist () | |
bool | IsBefore (time_t now, const struct tm &t_whitelist) |
Failures | VerifyWhitelist () |
Failures | ParseWhitelist (const unsigned char *whitelist, const unsigned whitelist_size) |
void | Reset () |
Private Attributes | |
std::string | fqrn_ |
download::DownloadManager * | download_manager_ |
signature::SignatureManager * | signature_manager_ |
Status | status_ |
std::vector< shash::Any > | fingerprints_ |
time_t | expires_ |
int | verification_flags_ |
unsigned char * | plain_buf_ |
unsigned | plain_size_ |
unsigned char * | pkcs7_buf_ |
unsigned | pkcs7_size_ |
Static Private Attributes | |
static const int | kFlagVerifyRsa = 0x01 |
static const int | kFlagVerifyPkcs7 = 0x02 |
static const int | kFlagVerifyCaChain = 0x04 |
Definition at line 71 of file whitelist.h.
Enumerator | |
---|---|
kStNone | |
kStAvailable |
Definition at line 75 of file whitelist.h.
whitelist::Whitelist::Whitelist | ( | const std::string & | fqrn, |
download::DownloadManager * | download_manager, | ||
signature::SignatureManager * | signature_manager | ||
) |
whitelist::Whitelist::~Whitelist | ( | ) |
|
explicit |
|
private |
Definition at line 434 of file whitelist.cc.
void whitelist::Whitelist::CopyBuffers | ( | unsigned * | plain_size, |
unsigned char ** | plain_buf, | ||
unsigned * | pkcs7_size, | ||
unsigned char ** | pkcs7_buf | ||
) | const |
Definition at line 28 of file whitelist.cc.
Referenced by manifest::DoVerify(), operator=(), and Whitelist().
|
static |
Definition at line 47 of file whitelist.cc.
Referenced by publish::CreateKeychain().
time_t whitelist::Whitelist::expires | ( | ) | const |
Definition at line 83 of file whitelist.cc.
Referenced by swissknife::CommandLetter::Main().
std::string whitelist::Whitelist::ExportString | ( | ) | const |
Definition at line 77 of file whitelist.cc.
Referenced by publish::PushWhitelist().
|
private |
|
private |
Helps for the time being with whitelists valid until after Y2038 on 32 bit systems.
Definition at line 265 of file whitelist.cc.
bool whitelist::Whitelist::IsExpired | ( | ) | const |
Definition at line 89 of file whitelist.cc.
Referenced by swissknife::CommandLetter::Main().
Failures whitelist::Whitelist::LoadMem | ( | const std::string & | whitelist | ) |
Definition at line 196 of file whitelist.cc.
Referenced by publish::CreateKeychain().
Failures whitelist::Whitelist::LoadUrl | ( | const std::string & | base_url | ) |
Definition at line 216 of file whitelist.cc.
Referenced by manifest::DoVerify(), publish::DownloadRootObjects(), and swissknife::CommandLetter::Main().
|
private |
|
private |
Definition at line 389 of file whitelist.cc.
Referenced by operator=(), and ~Whitelist().
|
inline |
Definition at line 103 of file whitelist.h.
Referenced by publish::DownloadRootObjects().
Failures whitelist::Whitelist::VerifyLoadedCertificate | ( | ) | const |
Definition at line 95 of file whitelist.cc.
Referenced by manifest::DoVerify(), and swissknife::CommandLetter::Main().
|
private |
Expects whitelist to be loaded into plain_buf_ / plain_size_ and already parsed so that verification_flags_ is set
Definition at line 129 of file whitelist.cc.
|
private |
Definition at line 119 of file whitelist.h.
Referenced by operator=().
|
private |
Definition at line 124 of file whitelist.h.
Referenced by operator=().
|
private |
Definition at line 123 of file whitelist.h.
Referenced by operator=().
|
private |
Definition at line 118 of file whitelist.h.
Referenced by operator=().
|
staticprivate |
Definition at line 110 of file whitelist.h.
|
staticprivate |
Definition at line 109 of file whitelist.h.
|
staticprivate |
Definition at line 108 of file whitelist.h.
|
private |
Definition at line 128 of file whitelist.h.
Referenced by operator=(), and Whitelist().
|
private |
Definition at line 129 of file whitelist.h.
Referenced by operator=(), and Whitelist().
|
private |
Definition at line 126 of file whitelist.h.
Referenced by operator=(), and Whitelist().
|
private |
Definition at line 127 of file whitelist.h.
Referenced by operator=(), and Whitelist().
|
private |
Definition at line 120 of file whitelist.h.
Referenced by operator=().
|
private |
Definition at line 122 of file whitelist.h.
Referenced by operator=(), and status().
|
private |
Definition at line 125 of file whitelist.h.
Referenced by operator=().