25#undef ZYPP_BASE_LOGGER_LOGGROUP 
   26#define ZYPP_BASE_LOGGER_LOGGROUP "FileChecker" 
   40      std::rethrow_exception( res.error ( ) );
 
 
   46    MIL << 
"+ null check on " << file << endl;
 
 
   53    for ( std::list<FileChecker>::const_iterator it = 
_checkers.begin(); it != 
_checkers.end(); ++it )
 
   62        ERR << 
"Invalid checker" << endl;
 
 
   81  { 
getZYpp()->keyRing()->importKey( publickey_r, 
false ); }
 
 
   87    self._verifyContext.file( file_r );
 
   91      std::rethrow_exception( res.error ( ) );
 
   93    self._verifyContext = std::move( *res );
 
 
void operator()(const Pathname &file) const
Try to validate the file.
ChecksumFileChecker(CheckSum checksum)
Constructor.
std::list< FileChecker > _checkers
void add(const FileChecker &checker)
void operator()(const Pathname &file) const
void operator()(const Pathname &file) const
void operator()(const Pathname &file_r) const
Call KeyRing::verifyFileSignatureWorkflow to verify the file.
keyring::VerifyFileContext & verifyContext()
void addPublicKey(const PublicKey &publickey_r)
Add a public key to the list of known keys.
keyring::VerifyFileContext _verifyContext
SignatureFileChecker()
Default Ctor for unsigned files.
ZYpp::Ptr getZYpp()
Convenience to get the Pointer to the ZYpp instance.
I/O context for KeyRing::verifyFileSignatureWorkflow.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
function< void(const Pathname &file)> FileChecker
Functor signature used to check files.
expected< void > verifyChecksum(SyncContextRef zyppCtx, zypp::CheckSum checksum, zypp::Pathname file)
expected< zypp::keyring::VerifyFileContext > verifySignature(SyncContextRef ctx, zypp::keyring::VerifyFileContext context)