9 #ifndef ZYPP_NG_USERREQUEST_H_INCLUDED 10 #define ZYPP_NG_USERREQUEST_H_INCLUDED 12 #include <zypp-common/PublicKey.h> 14 #include <zypp-core/zyppng/ui/UserRequest> 27 namespace AcceptNoDigestRequest {
28 constexpr std::string_view
CTYPE (
"digest/accept-no-digest");
29 constexpr std::string_view
FILE (
"file");
43 namespace AcceptUnknownDigestRequest {
44 constexpr std::string_view
CTYPE (
"digest/accept-unknown-digest");
45 constexpr std::string_view
FILE (
"file");
46 constexpr std::string_view
NAME (
"name");
60 namespace AcceptWrongDigestRequest {
61 constexpr std::string_view
CTYPE (
"digest/accept-unknown-digest");
62 constexpr std::string_view
FILE (
"file");
64 constexpr std::string_view
NAME_FOUND (
"found");
105 const std::string
label()
const;
122 namespace AcceptKeyRequest {
123 constexpr std::string_view
CTYPE (
"keyring/accept-key");
124 constexpr std::string_view
KEY (
"key");
125 constexpr std::string_view
KEY_CONTEXT(
"key-context");
138 namespace VerifyInfoEvent {
139 constexpr std::string_view
CTYPE (
"keyring/info-verify");
140 constexpr std::string_view
FILE (
"file");
141 constexpr std::string_view
KEY_DATA(
"key-data");
142 constexpr std::string_view
KEY_CONTEXT(
"key-context");
153 namespace AcceptUnsignedFileRequest {
154 constexpr std::string_view
CTYPE (
"keyring/accept-unsigned-file");
155 constexpr std::string_view
FILE (
"file");
156 constexpr std::string_view
KEY_CONTEXT(
"key-context");
172 namespace AcceptUnknownKeyRequest {
173 constexpr std::string_view
CTYPE (
"keyring/accept-unknown-key");
174 constexpr std::string_view
KEYID (
"keyid");
175 constexpr std::string_view
FILE (
"file");
176 constexpr std::string_view
KEY_CONTEXT(
"key-context");
189 namespace AcceptFailedVerificationRequest {
190 constexpr std::string_view
CTYPE (
"keyring/accept-failed-verification");
191 constexpr std::string_view
FILE (
"file");
192 constexpr std::string_view
KEY (
"key");
193 constexpr std::string_view
KEY_CONTEXT (
"key-context");
206 namespace AcceptPackageKeyRequest {
207 constexpr std::string_view
CTYPE (
"keyring/accept-package-key");
208 constexpr std::string_view
KEY (
"key");
209 constexpr std::string_view
KEY_CONTEXT (
"key-context");
221 namespace NonImportedKeysInfoEvent {
222 constexpr std::string_view
CTYPE (
"keyring/keys-not-imported");
223 constexpr std::string_view
KEYS (
"keys");
238 namespace KeyAutoImportInfoEvent {
239 constexpr std::string_view
CTYPE (
"keyring/auto-import-key-info");
241 constexpr std::string_view
KEY_DATA (
"key-data");
242 constexpr std::string_view
KEY_CONTEXT (
"key-context");
244 const zypp::PublicKeyData & keySigning_r,
251 #endif // ZYPP_NG_USERREQUEST_H_INCLUDED constexpr std::string_view CTYPE("keyring/info-verify")
constexpr std::string_view KEY("key")
UserData makeData(const std::list< zypp::PublicKeyData > &keyDataList_r, const zypp::PublicKeyData &keySigning_r, const zypp::KeyContext &keyContext_r)
constexpr std::string_view KEY_DATA("key-data")
UserRequestType type() const override
constexpr std::string_view KEY_DATA_LIST("key-data-list")
constexpr std::string_view CTYPE("keyring/auto-import-key-info")
UserData makeData(const zypp::Pathname &p, const std::string &name)
UserData makeData(const std::string &file, const zypp::PublicKey &key, const zypp::KeyContext &keycontext=zypp::KeyContext())
constexpr std::string_view CTYPE("keyring/accept-failed-verification")
constexpr std::string_view NAME("name")
UserData makeData(const std::string &file_r, const zypp::PublicKeyData &keyData_r, const zypp::KeyContext &keycontext=zypp::KeyContext())
constexpr std::string_view CTYPE("digest/accept-no-digest")
constexpr std::string_view KEY_CONTEXT("key-context")
ZYPP_DECL_PRIVATE_CONSTR_ARGS(TrustKeyRequest, std::string label, KeyTrust trust=KEY_DONT_TRUST, UserData userData={})
constexpr std::string_view CTYPE("keyring/accept-unknown-key")
This basically means, we knew the key, but it was not trusted.
#define ZYPP_ADD_CREATE_FUNC(Class)
constexpr std::string_view KEY_CONTEXT("key-context")
UserData makeData(const std::string &file, const std::string &id, const zypp::KeyContext &keycontext=zypp::KeyContext())
constexpr std::string_view FILE("file")
constexpr std::string_view NAME_FOUND("found")
UserData makeData(const zypp::PublicKey &key_r, const zypp::KeyContext &keycontext_r=zypp::KeyContext())
void setChoice(const KeyTrust sel)
constexpr std::string_view NAME_REQUESTED("requested")
const UserData & userData() const
ZYPP_FWD_DECL_TYPE_WITH_REFS(Context)
constexpr std::string_view KEY_CONTEXT("key-context")
constexpr std::string_view KEYS("keys")
constexpr std::string_view FILE("file")
constexpr std::string_view KEY("key")
constexpr std::string_view KEY_CONTEXT("key-context")
constexpr std::string_view KEY_DATA("key-data")
User has chosen not to trust the key.
constexpr std::string_view KEYID("keyid")
constexpr std::string_view FILE("file")
UserData makeData(const std::set< zypp::Edition > &keys_r)
constexpr std::string_view KEY_CONTEXT("key-context")
constexpr std::string_view FILE("file")
UserData makeData(const zypp::PublicKey &key, const zypp::KeyContext &keycontext=zypp::KeyContext())
constexpr std::string_view CTYPE("digest/accept-unknown-digest")
constexpr std::string_view CTYPE("keyring/keys-not-imported")
constexpr std::string_view FILE("file")
Typesafe passing of user data via callbacks.
constexpr std::string_view CTYPE("digest/accept-unknown-digest")
constexpr std::string_view CTYPE("keyring/accept-unsigned-file")
constexpr std::string_view FILE("file")
constexpr std::string_view KEY_CONTEXT("key-context")
UserData makeData(const zypp::Pathname &p)
constexpr std::string_view CTYPE("keyring/accept-package-key")
const std::string label() const
constexpr std::string_view FILE("file")
constexpr std::string_view KEY_CONTEXT("key-context")
UserData makeData(const zypp::Pathname &p, const std::string &requested, const std::string &found)
UserData makeData(const std::string &file, const zypp::KeyContext &keycontext=zypp::KeyContext())
constexpr std::string_view CTYPE("keyring/accept-key")
constexpr std::string_view KEY("key")