12 #ifndef ZYPP_FILECHECKER_H 13 #define ZYPP_FILECHECKER_H 18 #include <zypp/base/Exception.h> 19 #include <zypp/base/Function.h> 20 #include <zypp/PathInfo.h> 21 #include <zypp/CheckSum.h> 37 typedef function<void ( const Pathname &file )>
FileChecker;
172 #endif // ZYPP_FILECHECKER_H void operator()(const Pathname &file) const
Checks for nothing Used as the default checker.
std::ostream & operator<<(std::ostream &str, const InputStream &obj)
Checks for the validity of a signature.
void addPublicKey(const PublicKey &publickey_r)
Add a public key to the list of known keys.
void operator()(const Pathname &file_r) const
Call KeyRing::verifyFileSignatureWorkflow to verify the file.
String related utilities and Regular expression matching.
SignatureFileChecker()
Default Ctor for unsigned files.
I/O context for KeyRing::verifyFileSignatureWorkflow.
std::list< FileChecker > _checkers
void operator()(const Pathname &file) const
Try to validate the file.
void operator()(const Pathname &file) const
void add(const FileChecker &checker)
CheckSumCheckException(const std::string &msg)
SignatureCheckException ExceptionType
Checker composed of more checkers.
Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).
Base class for Exception.
std::string checksum(const Pathname &file, const std::string &algorithm)
Compute a files checksum.
SignatureCheckException(const std::string &msg)
function< void(const Pathname &file)> FileChecker
Functor signature used to check files.
Easy-to use interface to the ZYPP dependency resolver.
CheckSumCheckException ExceptionType
ChecksumFileChecker(const CheckSum &checksum)
Constructor.
FileCheckException(const std::string &msg)
const std::string & msg() const
Return the message string provided to the ctor.