libzypp: zypp/ng/workflows/keyringwf.h Source File

libzypp 17.38.6

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
12#include <zypp-core/base/PtrTypes.h>
13#include <zypp-core/ng/async/task.h>
14#include <zypp-core/ng/pipelines/Expected>
15
16namespace zypp {
17 class RepoInfo;
18 DEFINE_PTR_TYPE(KeyRing);
19
20 namespace keyring {
21 class VerifyFileContext;
22 }
23
24}
25
26namespace zyppng {
27
28 ZYPP_FWD_DECL_TYPE_WITH_REFS (Context);
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
PtrTypes.h
DEFINE_PTR_TYPE
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.
Definition PtrTypes.h:639
zypp::KeyRing
Gpg key handling.
Definition KeyRing.h:170
zypp::RepoInfo
What is known about a repository.
Definition RepoInfo.h:72
zypp::keyring::VerifyFileContext
I/O context for KeyRing::verifyFileSignatureWorkflow.
Definition KeyRingContexts.h:30
zyppng::Context
Definition context.h:27
KeyRingWorkflow
zypp::keyring
Definition KeyRingContexts.cc:18
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zyppng::KeyRingWorkflow::provideAndImportKeyFromRepository
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
zyppng::KeyRingWorkflow::verifyFileSignature
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
zyppng
Definition MediaNetworkRequestExecutor.h:16
ZYPP_FWD_DECL_TYPE_WITH_REFS
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:119