|
libzypp 17.37.17
|
KeyRing implementation, shared between zyppng and zypp. More...
#include <zypp-common/private/keyring_p.h>

Public Member Functions | |
| 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 () |
Private Attributes | |
| filesystem::TmpDir | _trusted_tmp_dir |
| filesystem::TmpDir | _general_tmp_dir |
| Pathname | _base_dir |
| bool | _allowPreload = false |
| CachedPublicKeyData | cachedPublicKeyData |
| Functor returning the keyrings data (cached). | |
| zyppng::Signal< void(const PublicKey &)> | _sigTrustedKeyAdded |
| zyppng::Signal< void(const PublicKey &)> | _sigTrustedKeyRemoved |
KeyRing implementation, shared between zyppng and zypp.
Definition at line 89 of file keyring_p.h.
| zypp::KeyRingImpl::KeyRingImpl | ( | const Pathname & | baseTmpDir | ) |
Definition at line 110 of file keyring_p.cc.
Definition at line 117 of file keyring_p.cc.
Definition at line 138 of file keyring_p.cc.
| void zypp::KeyRingImpl::deleteKey | ( | const std::string & | id, |
| bool | trusted ) |
Definition at line 143 of file keyring_p.cc.
| std::string zypp::KeyRingImpl::readSignatureKeyId | ( | const Pathname & | signature | ) |
Definition at line 301 of file keyring_p.cc.
|
inline |
Definition at line 100 of file keyring_p.h.
|
inline |
Definition at line 102 of file keyring_p.h.
|
inline |
Definition at line 105 of file keyring_p.h.
|
inline |
Definition at line 107 of file keyring_p.h.
|
inline |
Definition at line 110 of file keyring_p.h.
|
inline |
Definition at line 112 of file keyring_p.h.
|
inline |
Definition at line 115 of file keyring_p.h.
|
inline |
Definition at line 118 of file keyring_p.h.
|
inline |
Definition at line 120 of file keyring_p.h.
|
inline |
Definition at line 123 of file keyring_p.h.
|
inline |
Definition at line 125 of file keyring_p.h.
|
inline |
Definition at line 128 of file keyring_p.h.
|
inline |
Definition at line 130 of file keyring_p.h.
|
inline |
Definition at line 133 of file keyring_p.h.
|
inline |
Impl helper providing on demand a KeyManagerCtx to manip a cached keyring.
Definition at line 137 of file keyring_p.h.
| bool zypp::KeyRingImpl::verifyFile | ( | const Pathname & | file, |
| const Pathname & | signature, | ||
| const Pathname & | keyring ) |
Definition at line 317 of file keyring_p.cc.
Definition at line 281 of file keyring_p.cc.
Definition at line 239 of file keyring_p.cc.
| PublicKey zypp::KeyRingImpl::exportKey | ( | const PublicKeyData & | keyData, |
| const Pathname & | keyring ) |
Definition at line 234 of file keyring_p.cc.
Definition at line 145 of file keyring_p.h.
| void zypp::KeyRingImpl::dumpPublicKey | ( | const std::string & | id, |
| const Pathname & | keyring, | ||
| std::ostream & | stream ) |
Definition at line 251 of file keyring_p.cc.
| filesystem::TmpFile zypp::KeyRingImpl::dumpPublicKeyToTmp | ( | const std::string & | id, |
| const Pathname & | keyring ) |
Definition at line 256 of file keyring_p.cc.
| void zypp::KeyRingImpl::deleteKey | ( | const std::string & | id, |
| const Pathname & | keyring ) |
Definition at line 294 of file keyring_p.cc.
Definition at line 267 of file keyring_p.cc.
|
inline |
Definition at line 154 of file keyring_p.h.
| PublicKeyData zypp::KeyRingImpl::publicKeyExists | ( | const std::string & | id, |
| const Pathname & | keyring ) |
Get PublicKeyData for ID (false if ID is not found).
Definition at line 160 of file keyring_p.cc.
| void zypp::KeyRingImpl::preloadCachedKeys | ( | ) |
Load key files cached on the system into the generalKeyRing.
Definition at line 180 of file keyring_p.cc.
|
inline |
Definition at line 162 of file keyring_p.h.
|
inline |
Definition at line 164 of file keyring_p.h.
|
inline |
Definition at line 167 of file keyring_p.h.
|
inline |
Definition at line 171 of file keyring_p.h.
|
private |
Definition at line 177 of file keyring_p.h.
|
private |
Definition at line 178 of file keyring_p.h.
|
private |
Definition at line 179 of file keyring_p.h.
|
private |
Definition at line 180 of file keyring_p.h.
|
private |
Functor returning the keyrings data (cached).
Definition at line 187 of file keyring_p.h.
|
private |
Definition at line 189 of file keyring_p.h.
|
private |
Definition at line 190 of file keyring_p.h.