KeyRing implementation, shared between zyppng and zypp.
More...
#include <zypp-common/private/keyring_p.h>
|
| | KeyRingImpl (const Pathname &baseTmpDir) |
| void | importKey (const PublicKey &key, bool trusted=false) |
| void | multiKeyImport (const Pathname &keyfile_r, bool trusted_r=false) |
| void | deleteKey (const std::string &id, bool trusted) |
| std::string | readSignatureKeyId (const Pathname &signature) |
| bool | isKeyTrusted (const std::string &id) |
| bool | isKeyKnown (const std::string &id) |
| std::list< PublicKey > | trustedPublicKeys () |
| std::list< PublicKey > | publicKeys () |
| const std::list< PublicKeyData > & | trustedPublicKeyData () |
| const std::list< PublicKeyData > & | publicKeyData () |
| void | dumpPublicKey (const std::string &id, bool trusted, std::ostream &stream) |
| PublicKey | exportPublicKey (const PublicKeyData &keyData) |
| PublicKey | exportTrustedPublicKey (const PublicKeyData &keyData) |
| bool | verifyFileSignature (const Pathname &file, const Pathname &signature) |
| bool | verifyFileTrustedSignature (const Pathname &file, const Pathname &signature) |
| PublicKeyData | publicKeyExists (const std::string &id) |
| PublicKeyData | trustedPublicKeyExists (const std::string &id) |
| void | allowPreload (bool yesno_r) |
| CachedPublicKeyData::Manip | keyRingManip (const Pathname &keyring) |
| | Impl helper providing on demand a KeyManagerCtx to manip a cached keyring.
|
| bool | verifyFile (const Pathname &file, const Pathname &signature, const Pathname &keyring) |
| void | importKey (const Pathname &keyfile, const Pathname &keyring) |
| PublicKey | exportKey (const std::string &id, const Pathname &keyring) |
| PublicKey | exportKey (const PublicKeyData &keyData, const Pathname &keyring) |
| PublicKey | exportKey (const PublicKey &key, const Pathname &keyring) |
| void | dumpPublicKey (const std::string &id, const Pathname &keyring, std::ostream &stream) |
| filesystem::TmpFile | dumpPublicKeyToTmp (const std::string &id, const Pathname &keyring) |
| void | deleteKey (const std::string &id, const Pathname &keyring) |
| std::list< PublicKey > | publicKeys (const Pathname &keyring) |
| const std::list< PublicKeyData > & | publicKeyData (const Pathname &keyring) |
| PublicKeyData | publicKeyExists (const std::string &id, const Pathname &keyring) |
| | Get PublicKeyData for ID (false if ID is not found).
|
| void | preloadCachedKeys () |
| | Load key files cached on the system into the generalKeyRing.
|
| const Pathname | generalKeyRing () const |
| const Pathname | trustedKeyRing () const |
| zyppng::SignalProxy< void(const PublicKey &)> | sigTrustedKeyAdded () |
| zyppng::SignalProxy< void(const PublicKey &)> | sigTrustedKeyRemoved () |
KeyRing implementation, shared between zyppng and zypp.
Definition at line 90 of file keyring_p.h.
◆ KeyRingImpl()
| zypp::KeyRingImpl::KeyRingImpl |
( |
const Pathname & | baseTmpDir | ) |
|
◆ importKey() [1/2]
| void zypp::KeyRingImpl::importKey |
( |
const PublicKey & | key, |
|
|
bool | trusted = false ) |
◆ multiKeyImport()
| void zypp::KeyRingImpl::multiKeyImport |
( |
const Pathname & | keyfile_r, |
|
|
bool | trusted_r = false ) |
◆ deleteKey() [1/2]
| void zypp::KeyRingImpl::deleteKey |
( |
const std::string & | id, |
|
|
bool | trusted ) |
◆ readSignatureKeyId()
| std::string zypp::KeyRingImpl::readSignatureKeyId |
( |
const Pathname & | signature | ) |
|
◆ isKeyTrusted()
| bool zypp::KeyRingImpl::isKeyTrusted |
( |
const std::string & | id | ) |
|
|
inline |
◆ isKeyKnown()
| bool zypp::KeyRingImpl::isKeyKnown |
( |
const std::string & | id | ) |
|
|
inline |
◆ trustedPublicKeys()
| std::list< PublicKey > zypp::KeyRingImpl::trustedPublicKeys |
( |
| ) |
|
|
inline |
◆ publicKeys() [1/2]
| std::list< PublicKey > zypp::KeyRingImpl::publicKeys |
( |
| ) |
|
|
inline |
◆ trustedPublicKeyData()
| const std::list< PublicKeyData > & zypp::KeyRingImpl::trustedPublicKeyData |
( |
| ) |
|
|
inline |
◆ publicKeyData() [1/2]
| const std::list< PublicKeyData > & zypp::KeyRingImpl::publicKeyData |
( |
| ) |
|
|
inline |
◆ dumpPublicKey() [1/2]
| void zypp::KeyRingImpl::dumpPublicKey |
( |
const std::string & | id, |
|
|
bool | trusted, |
|
|
std::ostream & | stream ) |
|
inline |
◆ exportPublicKey()
◆ exportTrustedPublicKey()
◆ verifyFileSignature()
◆ verifyFileTrustedSignature()
| bool zypp::KeyRingImpl::verifyFileTrustedSignature |
( |
const Pathname & | file, |
|
|
const Pathname & | signature ) |
|
inline |
◆ publicKeyExists() [1/2]
| PublicKeyData zypp::KeyRingImpl::publicKeyExists |
( |
const std::string & | id | ) |
|
|
inline |
◆ trustedPublicKeyExists()
| PublicKeyData zypp::KeyRingImpl::trustedPublicKeyExists |
( |
const std::string & | id | ) |
|
|
inline |
◆ allowPreload()
| void zypp::KeyRingImpl::allowPreload |
( |
bool | yesno_r | ) |
|
|
inline |
◆ keyRingManip()
◆ verifyFile()
◆ importKey() [2/2]
| void zypp::KeyRingImpl::importKey |
( |
const Pathname & | keyfile, |
|
|
const Pathname & | keyring ) |
◆ exportKey() [1/3]
| PublicKey zypp::KeyRingImpl::exportKey |
( |
const std::string & | id, |
|
|
const Pathname & | keyring ) |
◆ exportKey() [2/3]
◆ exportKey() [3/3]
◆ dumpPublicKey() [2/2]
| void zypp::KeyRingImpl::dumpPublicKey |
( |
const std::string & | id, |
|
|
const Pathname & | keyring, |
|
|
std::ostream & | stream ) |
◆ dumpPublicKeyToTmp()
◆ deleteKey() [2/2]
| void zypp::KeyRingImpl::deleteKey |
( |
const std::string & | id, |
|
|
const Pathname & | keyring ) |
◆ publicKeys() [2/2]
◆ publicKeyData() [2/2]
◆ publicKeyExists() [2/2]
◆ preloadCachedKeys()
| void zypp::KeyRingImpl::preloadCachedKeys |
( |
| ) |
|
Load key files cached on the system into the generalKeyRing.
Definition at line 180 of file keyring_p.cc.
◆ generalKeyRing()
| const Pathname zypp::KeyRingImpl::generalKeyRing |
( |
| ) |
const |
|
inline |
◆ trustedKeyRing()
| const Pathname zypp::KeyRingImpl::trustedKeyRing |
( |
| ) |
const |
|
inline |
◆ sigTrustedKeyAdded()
◆ sigTrustedKeyRemoved()
◆ _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 188 of file keyring_p.h.
◆ _sigTrustedKeyAdded
◆ _sigTrustedKeyRemoved
The documentation for this class was generated from the following files: