28#include <zypp-common/PublicKey.h>
29#include <zypp-common/KeyRingException.h>
119 constexpr static const char * ACCEPT_PACKAGE_KEY_REQUEST =
"KeyRingReport/AcceptPackageKey";
130 void reportNonImportedKeys(
const std::set<Edition> &
keys_r );
132 constexpr static const char *KEYS_NOT_IMPORTED_REPORT =
"KeyRingReport/KeysNotImported";
147 void reportAutoImportKey(
const std::list<PublicKeyData> &
keyDataList_r,
151 constexpr static const char *REPORT_AUTO_IMPORT_KEY =
"KeyRingReport/reportAutoImportKey";
187 ACCEPT_NOTHING = 0x0000,
188 ACCEPT_UNSIGNED_FILE = 0x0001,
189 ACCEPT_UNKNOWNKEY = 0x0002,
190 TRUST_KEY_TEMPORARILY = 0x0004,
191 TRUST_AND_IMPORT_KEY = 0x0008,
192 ACCEPT_VERIFICATION_FAILED = 0x0010,
221 { dumpPublicKey(
id,
true, stream); }
224 { dumpPublicKey(
id,
false, stream); }
226 void dumpPublicKey(
const std::string &
id,
bool trusted, std::ostream &stream );
237 std::string readSignatureKeyId(
const Pathname &signature );
242 bool isKeyTrusted(
const std::string &
id );
248 bool isKeyKnown(
const std::string &
id );
254 void deleteKey(
const std::string &
id,
bool trusted =
false );
259 std::list<PublicKey> publicKeys();
264 std::list<PublicKey> trustedPublicKeys();
269 std::list<PublicKeyData> publicKeyData();
274 std::list<PublicKeyData> trustedPublicKeyData();
304 void allowPreload(
bool yesno_r );
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
std::ostream & operator<<(std::ostream &str, const KeyRing &)
Stream output.
ZYPP_DECLARE_FLAGS(DefaultAccept, DefaultAcceptBits)
void dumpTrustedPublicKey(const std::string &id, std::ostream &stream)
friend std::ostream & operator<<(std::ostream &str, const KeyRing &obj)
void dumpUntrustedPublicKey(const std::string &id, std::ostream &stream)
RW_pointer< Impl > _pimpl
Pointer to implementation.
DefaultAcceptBits
DefaultAccept flags (
Base class for reference counted objects.
String related utilities and Regular expression matching.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Easy-to use interface to the ZYPP dependency resolver.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Callbacks from signature verification workflow.
KeyTrust
User reply options for the askUserToTrustKey callback.
@ KEY_TRUST_TEMPORARILY
This basically means, we knew the key, but it was not trusted.
virtual void trustedKeyAdded(const PublicKey &)
virtual void trustedKeyRemoved(const PublicKey &)
Internal connection to rpm database.
#define ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Name)
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.