5 #ifndef CVMFS_LETTER_H_
6 #define CVMFS_LETTER_H_
13 class SignatureManager;
33 texts[1] =
"invalid Base64 input";
34 texts[2] =
"letter malformed";
35 texts[3] =
"letter expired";
36 texts[4] =
"signature verification failed";
37 texts[5] =
"certificate is not whitelisted";
38 texts[6] =
"repository name mismatch";
45 Letter(
const std::string &fqrn,
46 const std::string &
text,
49 Failures Verify(uint64_t max_age, std::string *msg, std::string *cert);
60 #endif // CVMFS_LETTER_H_
Letter(const std::string &fqrn, const std::string &text, signature::SignatureManager *signature_manager)
Failures Verify(uint64_t max_age, std::string *msg, std::string *cert)
std::string Sign(const shash::Algorithms hash_algorithm)
const char * Code2Ascii(const Failures error)
signature::SignatureManager * signature_manager_