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>
28 constexpr std::string_view
CTYPE (
"digest/accept-no-digest");
29 constexpr std::string_view
FILE (
"file");
44 constexpr std::string_view
CTYPE (
"digest/accept-unknown-digest");
45 constexpr std::string_view
FILE (
"file");
46 constexpr std::string_view
NAME (
"name");
61 constexpr std::string_view
CTYPE (
"digest/accept-unknown-digest");
62 constexpr std::string_view
FILE (
"file");
105 const std::string
label()
const;
123 constexpr std::string_view
CTYPE (
"keyring/accept-key");
124 constexpr std::string_view
KEY (
"key");
139 constexpr std::string_view
CTYPE (
"keyring/info-verify");
140 constexpr std::string_view
FILE (
"file");
154 constexpr std::string_view
CTYPE (
"keyring/accept-unsigned-file");
155 constexpr std::string_view
FILE (
"file");
173 constexpr std::string_view
CTYPE (
"keyring/accept-unknown-key");
174 constexpr std::string_view
KEYID (
"keyid");
175 constexpr std::string_view
FILE (
"file");
190 constexpr std::string_view
CTYPE (
"keyring/accept-failed-verification");
191 constexpr std::string_view
FILE (
"file");
192 constexpr std::string_view
KEY (
"key");
207 constexpr std::string_view
CTYPE (
"keyring/accept-package-key");
208 constexpr std::string_view
KEY (
"key");
222 constexpr std::string_view
CTYPE (
"keyring/keys-not-imported");
223 constexpr std::string_view
KEYS (
"keys");
239 constexpr std::string_view
CTYPE (
"keyring/auto-import-key-info");
244 const zypp::PublicKeyData & keySigning_r,
ZYPP_DECL_PRIVATE_CONSTR_ARGS(TrustKeyRequest, std::string label, KeyTrust trust=KEY_DONT_TRUST, UserData userData={})
void setChoice(const KeyTrust sel)
@ KEY_DONT_TRUST
User has chosen not to trust the key.
@ KEY_TRUST_AND_IMPORT
Import the key.
@ KEY_TRUST_TEMPORARILY
This basically means, we knew the key, but it was not trusted.
const std::string label() const
UserRequestType type() const override
const UserData & userData() const
UserRequest(UserData userData={})
Ask the user to accept a file that is signed but where the signature verification failed.
constexpr std::string_view FILE("file")
constexpr std::string_view KEY_CONTEXT("key-context")
UserData makeData(const std::string &file, const zypp::PublicKey &key, const zypp::KeyContext &keycontext=zypp::KeyContext())
constexpr std::string_view KEY("key")
constexpr std::string_view CTYPE("keyring/accept-failed-verification")
constexpr std::string_view KEY("key")
constexpr std::string_view CTYPE("keyring/accept-key")
UserData makeData(const zypp::PublicKey &key, const zypp::KeyContext &keycontext=zypp::KeyContext())
constexpr std::string_view KEY_CONTEXT("key-context")
UserData makeData(const zypp::Pathname &p)
constexpr std::string_view CTYPE("digest/accept-no-digest")
constexpr std::string_view FILE("file")
Ask user to trust and/or import the package key to trusted keyring.
constexpr std::string_view CTYPE("keyring/accept-package-key")
UserData makeData(const zypp::PublicKey &key_r, const zypp::KeyContext &keycontext_r=zypp::KeyContext())
constexpr std::string_view KEY("key")
constexpr std::string_view KEY_CONTEXT("key-context")
UserData makeData(const zypp::Pathname &p, const std::string &name)
constexpr std::string_view CTYPE("digest/accept-unknown-digest")
constexpr std::string_view NAME("name")
constexpr std::string_view FILE("file")
Ask the user to accept a unknown key.
UserData makeData(const std::string &file, const std::string &id, const zypp::KeyContext &keycontext=zypp::KeyContext())
constexpr std::string_view KEY_CONTEXT("key-context")
constexpr std::string_view FILE("file")
constexpr std::string_view CTYPE("keyring/accept-unknown-key")
constexpr std::string_view KEYID("keyid")
constexpr std::string_view CTYPE("keyring/accept-unsigned-file")
constexpr std::string_view KEY_CONTEXT("key-context")
constexpr std::string_view FILE("file")
UserData makeData(const std::string &file, const zypp::KeyContext &keycontext=zypp::KeyContext())
UserData makeData(const zypp::Pathname &p, const std::string &requested, const std::string &found)
constexpr std::string_view CTYPE("digest/accept-unknown-digest")
constexpr std::string_view NAME_FOUND("found")
constexpr std::string_view NAME_REQUESTED("requested")
constexpr std::string_view FILE("file")
Notify that a repository auto imported new package signing keys.
constexpr std::string_view CTYPE("keyring/auto-import-key-info")
constexpr std::string_view KEY_DATA_LIST("key-data-list")
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")
constexpr std::string_view KEY_CONTEXT("key-context")
Notify the user about keys that were not imported from the rpm key database into zypp keyring.
constexpr std::string_view KEYS("keys")
constexpr std::string_view CTYPE("keyring/keys-not-imported")
UserData makeData(const std::set< zypp::Edition > &keys_r)
constexpr std::string_view FILE("file")
UserData makeData(const std::string &file_r, const zypp::PublicKeyData &keyData_r, const zypp::KeyContext &keycontext=zypp::KeyContext())
constexpr std::string_view KEY_DATA("key-data")
constexpr std::string_view KEY_CONTEXT("key-context")
constexpr std::string_view CTYPE("keyring/info-verify")
zypp::callback::UserData UserData
#define ZYPP_ADD_CREATE_FUNC(Class)
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)