15#include <zypp-core/fs/PathInfo.h>
22 using namespace zyppng::operators;
24 template <
class Executor,
class OpType>
25 struct VerifySignatureLogic :
public LogicBase<Executor,OpType> {
28 using ZyppContextRefType = MaybeAsyncContextRef<OpType>;
34 MaybeAsyncRef<expected<zypp::keyring::VerifyFileContext>> execute () {
41 MIL <<
"Checking " <<
_verifyCtx.
file ()<<
" file validity using digital signature.." << std::endl;
47 return expected<zypp::keyring::VerifyFileContext>::success ( std::move( res.second ) );
57 namespace SignatureFileCheckWorkflow {
Wrapper class for stat/lstat.
bool isExist() const
Return whether valid stat info exists.
I/O context for KeyRing::verifyFileSignatureWorkflow.
const Pathname & file() const
File to verify.
const Pathname & signature() const
Detached signature or empty.
#define ZYPP_ENABLE_LOGIC_BASE(Executor, OpType)
std::pair< bool, zypp::keyring::VerifyFileContext > verifyFileSignature(SyncContextRef zyppContext, zypp::keyring::VerifyFileContext &&context_r)
Follows a signature verification interacting with the user.
expected< zypp::keyring::VerifyFileContext > verifySignature(SyncContextRef ctx, zypp::keyring::VerifyFileContext context)
zypp::keyring::VerifyFileContext _verifyCtx
ZyppContextRefType _zyppCtx
#define ZYPP_EXCPT_PTR(EXCPT)
Drops a logline and returns Exception as a std::exception_ptr.