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

libzypp 17.36.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/zyppng/pipelines/AsyncResult>
13#include <zypp-core/zyppng/pipelines/Expected>
14
15namespace zypp {
16 class RepoInfo;
17 DEFINE_PTR_TYPE(KeyRing);
18
19 namespace keyring {
20 class VerifyFileContext;
21 }
22
23}
24
25namespace zyppng {
26
27 ZYPP_FWD_DECL_TYPE_WITH_REFS (Context);
28 ZYPP_FWD_DECL_TYPE_WITH_REFS (SyncContext);
29
36 namespace KeyRingWorkflow {
37
42 bool provideAndImportKeyFromRepository(SyncContextRef ctx, std::string id_r, zypp::RepoInfo info_r );
43 AsyncOpRef<bool> provideAndImportKeyFromRepository(ContextRef ctx, std::string id_r, zypp::RepoInfo info_r );
44
76 std::pair<bool,zypp::keyring::VerifyFileContext> verifyFileSignature( SyncContextRef zyppContext, zypp::keyring::VerifyFileContext && context_r );
77 AsyncOpRef<std::pair<bool,zypp::keyring::VerifyFileContext>> verifyFileSignature( ContextRef zyppContext, zypp::keyring::VerifyFileContext && context_r );
78
79 std::pair<bool,zypp::keyring::VerifyFileContext> verifyFileSignature( SyncContextRef zyppContext, zypp::KeyRing_Ptr keyRing, zypp::keyring::VerifyFileContext &&context_r );
80 AsyncOpRef<std::pair<bool,zypp::keyring::VerifyFileContext>> verifyFileSignature( ContextRef zyppContext, zypp::KeyRing_Ptr keyRing, zypp::keyring::VerifyFileContext &&context_r );
81 }
82}
83
84#endif
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:39
zyppng::SyncContext
Definition contextfacade.h:27
KeyRingWorkflow
zypp::keyring
Definition KeyRingContexts.cc:18
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zyppng::KeyRingWorkflow::provideAndImportKeyFromRepository
bool provideAndImportKeyFromRepository(SyncContextRef 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:101
zyppng::KeyRingWorkflow::verifyFileSignature
std::pair< bool, zypp::keyring::VerifyFileContext > verifyFileSignature(SyncContextRef zyppContext, zypp::keyring::VerifyFileContext &&context_r)
Follows a signature verification interacting with the user.
Definition keyringwf.cc:332
zyppng
Definition MediaCurl2.h:22
zyppng::AsyncOpRef
std::shared_ptr< AsyncOp< T > > AsyncOpRef
Definition asyncop.h:255
DEFINE_PTR_TYPE
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.
Definition PtrTypes.h:639
ZYPP_FWD_DECL_TYPE_WITH_REFS
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:126