117 constexpr static const char * ACCEPT_PACKAGE_KEY_REQUEST =
"KeyRingReport/AcceptPackageKey";
128 void reportNonImportedKeys(
const std::set<Edition> &
keys_r );
130 constexpr static const char *KEYS_NOT_IMPORTED_REPORT =
"KeyRingReport/KeysNotImported";
145 void reportAutoImportKey(
const std::list<PublicKeyData> &
keyDataList_r,
149 constexpr static const char *REPORT_AUTO_IMPORT_KEY =
"KeyRingReport/reportAutoImportKey";
204 ACCEPT_NOTHING = 0x0000,
205 ACCEPT_UNSIGNED_FILE = 0x0001,
206 ACCEPT_UNKNOWNKEY = 0x0002,
207 TRUST_KEY_TEMPORARILY = 0x0004,
208 TRUST_AND_IMPORT_KEY = 0x0008,
209 ACCEPT_VERIFICATION_FAILED = 0x0010,
238 { dumpPublicKey(
id,
true, stream); }
241 { dumpPublicKey(
id,
false, stream); }
243 void dumpPublicKey(
const std::string &
id,
bool trusted, std::ostream &stream );
254 std::string readSignatureKeyId(
const Pathname &signature );
259 bool isKeyTrusted(
const std::string &
id );
265 bool isKeyKnown(
const std::string &
id );
271 void deleteKey(
const std::string &
id,
bool trusted =
false );
276 std::list<PublicKey> publicKeys();
281 std::list<PublicKey> trustedPublicKeys();
286 std::list<PublicKeyData> publicKeyData();
291 std::list<PublicKeyData> trustedPublicKeyData();
321 void allowPreload(
bool yesno_r );
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Base class for Exception.
KeyRingException()
Ctor taking message.
~KeyRingException() override
Dtor.
KeyRingException(const std::string &msg_r)
Ctor taking message.
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 (
Class representing one GPG Public Keys data.
Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).
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.