24 struct VerifySignatureLogic {
30 MaybeAwaitable<expected<zypp::keyring::VerifyFileContext>> execute () {
37 MIL <<
"Checking " <<
_verifyCtx.
file ()<<
" file validity using digital signature.." << std::endl;
53 namespace SignatureFileCheckWorkflow {
56 VerifySignatureLogic impl( std::move(ctx), std::move(context) );
57 zypp_co_return zypp_co_await( impl.execute () );
I/O context for KeyRing::verifyFileSignatureWorkflow.
#define ZYPP_EXCPT_PTR(EXCPT)
Drops a logline and returns Exception as a std::exception_ptr.
const Pathname & signature() const
Detached signature or empty.
bool isExist() const
Return whether valid stat info exists.
MaybeAwaitable< expected< zypp::keyring::VerifyFileContext > > verifySignature(ContextRef ctx, zypp::keyring::VerifyFileContext context)
const Pathname & file() const
File to verify.
static expected success(ConsParams &&...params)
Wrapper class for ::stat/::lstat.
MaybeAwaitable< std::pair< bool, zypp::keyring::VerifyFileContext > > verifyFileSignature(ContextRef zyppContext, zypp::keyring::VerifyFileContext &&context_r)
Follows a signature verification interacting with the user.
zypp::keyring::VerifyFileContext _verifyCtx