KeyRing implementation, shared between zyppng and zypp.
More...
#include <zypp-common/private/keyring_p.h>
|
| zyppng::SignalProxy< void(const PublicKey &)> | sigTrustedKeyAdded () |
| zyppng::SignalProxy< void(const PublicKey &)> | sigTrustedKeyRemoved () |
| | KeyRingImpl (const Pathname &baseTmpDir) |
| void | allowPreload (bool yesno_r) |
| void | importKey (const PublicKey &key, const Ring ring) |
| | Import PublicKeys into a Ring.
|
| void | importKeys (const std::list< PublicKey > &keys, const Ring ring) |
| PublicKey | exportKey (const std::string &id, const Ring ring) const |
| PublicKey | exportKey (const PublicKeyData &keyData, const Ring ring) const |
| PublicKey | exportKey (const PublicKey &key, const Ring ring) const |
| void | deleteKey (const std::string &id, const Ring ring) |
| void | dumpPublicKey (const std::string &id, const Ring ring, std::ostream &stream) |
| bool | verifyFile (const Pathname &file, const Pathname &signature, const Ring ring) |
| std::string | readSignatureKeyId (const Pathname &signature) |
| void | multiKeyImport (const Pathname &keyfile_r, const Ring ring) |
| | Used by RpmDB to import the trusted keys.
|
| MustUpdate | mustUpdateData (const PublicKeyData &keyData, const Ring ring) const |
| | Helper computing PublicKeyData's status in a Ring.
|
| bool | isKeyTrusted (const std::string &id) const |
| bool | isKeyKnown (const std::string &id) const |
| PublicKeyData | publicKeyData (const std::string &id, const Ring ring) const |
| PublicKeyData | publicKeyData (const PublicKeyData &keyData, const Ring ring) const |
| PublicKeyData | publicKeyData (const PublicKey &key, const Ring ring) const |
| const std::list< PublicKeyData > & | publicKeyData (const Ring ring) const |
| std::list< PublicKey > | publicKeys (const Ring ring) const |
|
| const Pathname | keyRingPath (const Ring ring) const |
| void | importKey (const Pathname &keyfile, const Pathname &keyring) |
| PublicKey | exportKey (const std::string &id, const Pathname &keyring) const |
| PublicKey | exportKey (const PublicKeyData &keyData, const Pathname &keyring) const |
| void | deleteKey (const std::string &id, const Pathname &keyring) |
| PublicKeyData | publicKeyData (const std::string &id, const Pathname &keyring) const |
| const std::list< PublicKeyData > & | publicKeyData (const Pathname &keyring) const |
| std::list< PublicKey > | publicKeys (const Pathname &keyring) const |
| void | dumpPublicKey (const std::string &id, const Pathname &keyring, std::ostream &stream) const |
| filesystem::TmpFile | dumpPublicKeyToTmp (const std::string &id, const Pathname &keyring) const |
| bool | verifyFile (const Pathname &file, const Pathname &signature, const Pathname &keyring) |
| void | preloadCachedKeys () |
| | Load key files cached on the system into the generalKeyRing.
|
| CachedPublicKeyData::Manip | keyRingManip (const Pathname &keyring) |
| | Impl helper providing on demand a KeyManagerCtx to manip a cached keyring.
|
KeyRing implementation, shared between zyppng and zypp.
Definition at line 90 of file keyring_p.h.
◆ Ring
| Enumerator |
|---|
| General | |
| Trusted | |
Definition at line 93 of file keyring_p.h.
◆ MustUpdate
| Enumerator |
|---|
| Present | Key is in Ring.
|
| Missing | Key is not in Ring.
|
| Update | old version of Key is in Ring
|
Definition at line 143 of file keyring_p.h.
◆ KeyRingImpl()
| zypp::KeyRingImpl::KeyRingImpl |
( |
const Pathname & | baseTmpDir | ) |
|
◆ sigTrustedKeyAdded()
◆ sigTrustedKeyRemoved()
◆ allowPreload()
| void zypp::KeyRingImpl::allowPreload |
( |
bool | yesno_r | ) |
|
|
inline |
◆ importKey() [1/2]
| void zypp::KeyRingImpl::importKey |
( |
const PublicKey & | key, |
|
|
const Ring | ring ) |
◆ importKeys()
| void zypp::KeyRingImpl::importKeys |
( |
const std::list< PublicKey > & | keys, |
|
|
const Ring | ring ) |
◆ exportKey() [1/5]
| PublicKey zypp::KeyRingImpl::exportKey |
( |
const std::string & | id, |
|
|
const Ring | ring ) const |
|
inline |
◆ exportKey() [2/5]
◆ exportKey() [3/5]
◆ deleteKey() [1/2]
| void zypp::KeyRingImpl::deleteKey |
( |
const std::string & | id, |
|
|
const Ring | ring ) |
◆ dumpPublicKey() [1/2]
| void zypp::KeyRingImpl::dumpPublicKey |
( |
const std::string & | id, |
|
|
const Ring | ring, |
|
|
std::ostream & | stream ) |
|
inline |
◆ verifyFile() [1/2]
◆ readSignatureKeyId()
| std::string zypp::KeyRingImpl::readSignatureKeyId |
( |
const Pathname & | signature | ) |
|
◆ multiKeyImport()
| void zypp::KeyRingImpl::multiKeyImport |
( |
const Pathname & | keyfile_r, |
|
|
const Ring | ring ) |
Used by RpmDB to import the trusted keys.
Use with care - it's a silent import of all keys. No extra logging. Wrap keyfile_r into a PublicKey and call importKey to get the same result plus the log lines.
Definition at line 203 of file keyring_p.cc.
◆ mustUpdateData()
◆ isKeyTrusted()
| bool zypp::KeyRingImpl::isKeyTrusted |
( |
const std::string & | id | ) |
const |
|
inline |
◆ isKeyKnown()
| bool zypp::KeyRingImpl::isKeyKnown |
( |
const std::string & | id | ) |
const |
|
inline |
◆ publicKeyData() [1/6]
| PublicKeyData zypp::KeyRingImpl::publicKeyData |
( |
const std::string & | id, |
|
|
const Ring | ring ) const |
|
inline |
◆ publicKeyData() [2/6]
◆ publicKeyData() [3/6]
◆ publicKeyData() [4/6]
| const std::list< PublicKeyData > & zypp::KeyRingImpl::publicKeyData |
( |
const Ring | ring | ) |
const |
|
inline |
◆ publicKeys() [1/2]
| std::list< PublicKey > zypp::KeyRingImpl::publicKeys |
( |
const Ring | ring | ) |
const |
|
inline |
◆ keyRingPath()
| const Pathname zypp::KeyRingImpl::keyRingPath |
( |
const Ring | ring | ) |
const |
|
inlineprivate |
◆ importKey() [2/2]
| void zypp::KeyRingImpl::importKey |
( |
const Pathname & | keyfile, |
|
|
const Pathname & | keyring ) |
|
private |
◆ exportKey() [4/5]
| PublicKey zypp::KeyRingImpl::exportKey |
( |
const std::string & | id, |
|
|
const Pathname & | keyring ) const |
|
private |
◆ exportKey() [5/5]
◆ deleteKey() [2/2]
| void zypp::KeyRingImpl::deleteKey |
( |
const std::string & | id, |
|
|
const Pathname & | keyring ) |
|
private |
◆ publicKeyData() [5/6]
| PublicKeyData zypp::KeyRingImpl::publicKeyData |
( |
const std::string & | id, |
|
|
const Pathname & | keyring ) const |
|
private |
◆ publicKeyData() [6/6]
◆ publicKeys() [2/2]
| std::list< PublicKey > zypp::KeyRingImpl::publicKeys |
( |
const Pathname & | keyring | ) |
const |
|
private |
◆ dumpPublicKey() [2/2]
| void zypp::KeyRingImpl::dumpPublicKey |
( |
const std::string & | id, |
|
|
const Pathname & | keyring, |
|
|
std::ostream & | stream ) const |
|
private |
◆ dumpPublicKeyToTmp()
◆ verifyFile() [2/2]
◆ preloadCachedKeys()
| void zypp::KeyRingImpl::preloadCachedKeys |
( |
| ) |
|
|
private |
Load key files cached on the system into the generalKeyRing.
Definition at line 330 of file keyring_p.cc.
◆ keyRingManip()
◆ _trusted_tmp_dir
◆ _general_tmp_dir
◆ _base_dir
◆ _allowPreload
| bool zypp::KeyRingImpl::_allowPreload = false |
|
private |
◆ cachedPublicKeyData
Functor returning the keyrings data (cached).
CachedPublicKeyData cachedPublicKeyData
Functor returning the keyrings data (cached).
Definition at line 231 of file keyring_p.h.
◆ _sigTrustedKeyAdded
◆ _sigTrustedKeyRemoved
The documentation for this class was generated from the following files: