libzypp 17.38.3
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
16namespace zypp {
17 class RepoInfo;
19
20 namespace keyring {
22 }
23
24}
25
26namespace 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
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.
Definition PtrTypes.h:639
Gpg key handling.
Definition KeyRing.h:170
What is known about a repository.
Definition RepoInfo.h:72
I/O context for KeyRing::verifyFileSignatureWorkflow.
Easy-to use interface to the ZYPP dependency resolver.
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
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:346
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:126