libzypp  17.38.7
keyringwf.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 #ifndef ZYPP_NG_KEYRINGWORKFLOW_INCLUDED
10 #define ZYPP_NG_KEYRINGWORKFLOW_INCLUDED
11 
13 #include <zypp-core/ng/async/task.h>
14 #include <zypp-core/ng/pipelines/Expected>
15 
16 namespace zypp {
17  class RepoInfo;
19 
20  namespace keyring {
21  class VerifyFileContext;
22  }
23 
24 }
25 
26 namespace zyppng {
27 
29 
36  namespace KeyRingWorkflow {
37 
42  MaybeAwaitable<bool> provideAndImportKeyFromRepository(ContextRef ctx, std::string id_r, zypp::RepoInfo info_r );
43 
75  MaybeAwaitable<std::pair<bool,zypp::keyring::VerifyFileContext>> verifyFileSignature( ContextRef zyppContext, zypp::keyring::VerifyFileContext && context_r );
76 
77  MaybeAwaitable<std::pair<bool,zypp::keyring::VerifyFileContext>> verifyFileSignature( ContextRef zyppContext, zypp::KeyRing_Ptr keyRing, zypp::keyring::VerifyFileContext &&context_r );
78  }
79 }
80 
81 #endif
zypp::KeyRing KeyRing
Definition: context.h:24
MaybeAwaitable< bool > provideAndImportKeyFromRepository(ContextRef ctx, std::string id_r, zypp::RepoInfo info_r)
Try to find the id in key cache or repository specified in info.
Definition: keyringwf.cc:115
zypp::RepoInfo RepoInfo
Definition: repomanager.h:38
What is known about a repository.
Definition: RepoInfo.h:71
I/O context for KeyRing::verifyFileSignatureWorkflow.
DEFINE_PTR_TYPE(Application)
ZYPP_FWD_DECL_TYPE_WITH_REFS(EventDispatcher)
MaybeAwaitable< std::pair< bool, zypp::keyring::VerifyFileContext > > verifyFileSignature(ContextRef zyppContext, zypp::keyring::VerifyFileContext &&context_r)
Follows a signature verification interacting with the user.
Definition: keyringwf.cc:324
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1