82 virtual bool askUserToAcceptUnsignedFile(
const std::string &file,
const KeyContext &keycontext =
KeyContext() );
90 virtual bool askUserToAcceptUnknownKey(
const std::string &file,
const std::string &
id,
const KeyContext &keycontext =
KeyContext() );
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 );
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)
static DefaultAccept defaultAccept()
Get the active accept bits.
void dumpTrustedPublicKey(const std::string &id, std::ostream &stream)
void dumpPublicKey(const std::string &id, bool trusted, std::ostream &stream)
friend std::ostream & operator<<(std::ostream &str, const KeyRing &obj)
void multiKeyImport(const Pathname &keyfile_r, bool trusted_r=false)
Initial import from RpmDb.
KeyRing(const Pathname &baseTmpDir)
Default ctor.
void dumpUntrustedPublicKey(const std::string &id, std::ostream &stream)
void importKey(const PublicKey &key, bool trusted=false)
imports a key from a file.
RW_pointer< Impl > _pimpl
Pointer to implementation.
static void setDefaultAccept(DefaultAccept value_r)
Set the active accept bits.
DefaultAcceptBits
DefaultAccept flags (
@ ACCEPT_VERIFICATION_FAILED
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.
void reportNonImportedKeys(const std::set< Edition > &keys_r)
Notify the user about keys that were not imported from the rpm key database into zypp keyring.
KeyTrust
User reply options for the askUserToTrustKey callback.
@ KEY_TRUST_AND_IMPORT
Import the key.
@ KEY_DONT_TRUST
User has chosen not to trust the key.
@ KEY_TRUST_TEMPORARILY
This basically means, we knew the key, but it was not trusted.
static constexpr const char * REPORT_AUTO_IMPORT_KEY
generic reports UserData::type
static constexpr const char * ACCEPT_PACKAGE_KEY_REQUEST
generic reports UserData::type
static constexpr const char * KEYS_NOT_IMPORTED_REPORT
generic reports UserData::type
void reportAutoImportKey(const std::list< PublicKeyData > &keyDataList_r, const PublicKeyData &keySigning_r, const KeyContext &keyContext_r)
Notify that a repository auto imported new package signing keys.
virtual void trustedKeyAdded(const PublicKey &)
virtual void trustedKeyRemoved(const PublicKey &)
Wrapper for const correct access via Smart pointer types.
Internal connection to rpm database.
#define ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Name)
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.