KeyRing implementation.
More...
|
| Impl (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 | verifyFileSignatureWorkflow (const Pathname &file, const std::string &filedesc, const Pathname &signature, bool &sigValid_r, const KeyContext &keycontext=KeyContext()) |
|
bool | verifyFileSignature (const Pathname &file, const Pathname &signature) |
|
bool | verifyFileTrustedSignature (const Pathname &file, const Pathname &signature) |
|
PublicKeyData | trustedPublicKeyExists (const std::string &id) |
|
bool | provideAndImportKeyFromRepositoryWorkflow (const std::string &id_r, const RepoInfo &info_r) |
|
|
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). More...
|
|
const Pathname | generalKeyRing () const |
|
const Pathname | trustedKeyRing () const |
|
KeyRing implementation.
Definition at line 181 of file KeyRing.cc.
◆ Impl()
zypp::KeyRing::Impl::Impl |
( |
const Pathname & |
baseTmpDir | ) |
|
|
inline |
◆ importKey() [1/2]
void zypp::KeyRing::Impl::importKey |
( |
const PublicKey & |
key, |
|
|
bool |
trusted = false |
|
) |
| |
◆ multiKeyImport()
void zypp::KeyRing::Impl::multiKeyImport |
( |
const Pathname & |
keyfile_r, |
|
|
bool |
trusted_r = false |
|
) |
| |
◆ deleteKey() [1/2]
void zypp::KeyRing::Impl::deleteKey |
( |
const std::string & |
id, |
|
|
bool |
trusted |
|
) |
| |
◆ readSignatureKeyId()
std::string zypp::KeyRing::Impl::readSignatureKeyId |
( |
const Pathname & |
signature | ) |
|
◆ isKeyTrusted()
bool zypp::KeyRing::Impl::isKeyTrusted |
( |
const std::string & |
id | ) |
|
|
inline |
◆ isKeyKnown()
bool zypp::KeyRing::Impl::isKeyKnown |
( |
const std::string & |
id | ) |
|
|
inline |
◆ trustedPublicKeys()
std::list<PublicKey> zypp::KeyRing::Impl::trustedPublicKeys |
( |
| ) |
|
|
inline |
◆ publicKeys() [1/2]
std::list<PublicKey> zypp::KeyRing::Impl::publicKeys |
( |
| ) |
|
|
inline |
◆ trustedPublicKeyData()
const std::list<PublicKeyData>& zypp::KeyRing::Impl::trustedPublicKeyData |
( |
| ) |
|
|
inline |
◆ publicKeyData() [1/2]
const std::list<PublicKeyData>& zypp::KeyRing::Impl::publicKeyData |
( |
| ) |
|
|
inline |
◆ dumpPublicKey() [1/2]
void zypp::KeyRing::Impl::dumpPublicKey |
( |
const std::string & |
id, |
|
|
bool |
trusted, |
|
|
std::ostream & |
stream |
|
) |
| |
|
inline |
◆ exportPublicKey()
◆ exportTrustedPublicKey()
◆ verifyFileSignatureWorkflow()
bool zypp::KeyRing::Impl::verifyFileSignatureWorkflow |
( |
const Pathname & |
file, |
|
|
const std::string & |
filedesc, |
|
|
const Pathname & |
signature, |
|
|
bool & |
sigValid_r, |
|
|
const KeyContext & |
keycontext = KeyContext() |
|
) |
| |
◆ verifyFileSignature()
bool zypp::KeyRing::Impl::verifyFileSignature |
( |
const Pathname & |
file, |
|
|
const Pathname & |
signature |
|
) |
| |
|
inline |
◆ verifyFileTrustedSignature()
bool zypp::KeyRing::Impl::verifyFileTrustedSignature |
( |
const Pathname & |
file, |
|
|
const Pathname & |
signature |
|
) |
| |
|
inline |
◆ trustedPublicKeyExists()
PublicKeyData zypp::KeyRing::Impl::trustedPublicKeyExists |
( |
const std::string & |
id | ) |
|
|
inline |
◆ provideAndImportKeyFromRepositoryWorkflow()
bool zypp::KeyRing::Impl::provideAndImportKeyFromRepositoryWorkflow |
( |
const std::string & |
id_r, |
|
|
const RepoInfo & |
info_r |
|
) |
| |
◆ verifyFile()
◆ importKey() [2/2]
void zypp::KeyRing::Impl::importKey |
( |
const Pathname & |
keyfile, |
|
|
const Pathname & |
keyring |
|
) |
| |
|
private |
◆ exportKey() [1/3]
PublicKey zypp::KeyRing::Impl::exportKey |
( |
const std::string & |
id, |
|
|
const Pathname & |
keyring |
|
) |
| |
|
private |
◆ exportKey() [2/3]
◆ exportKey() [3/3]
◆ dumpPublicKey() [2/2]
void zypp::KeyRing::Impl::dumpPublicKey |
( |
const std::string & |
id, |
|
|
const Pathname & |
keyring, |
|
|
std::ostream & |
stream |
|
) |
| |
|
private |
◆ dumpPublicKeyToTmp()
◆ deleteKey() [2/2]
void zypp::KeyRing::Impl::deleteKey |
( |
const std::string & |
id, |
|
|
const Pathname & |
keyring |
|
) |
| |
|
private |
◆ publicKeys() [2/2]
◆ publicKeyData() [2/2]
◆ publicKeyExists()
◆ generalKeyRing()
const Pathname zypp::KeyRing::Impl::generalKeyRing |
( |
| ) |
const |
|
inlineprivate |
◆ trustedKeyRing()
const Pathname zypp::KeyRing::Impl::trustedKeyRing |
( |
| ) |
const |
|
inlineprivate |
◆ _trusted_tmp_dir
◆ _general_tmp_dir
◆ _base_dir
◆ cachedPublicKeyData
CachedPublicKeyData zypp::KeyRing::Impl::cachedPublicKeyData |
|
private |
Functor returning the keyrings data (cached).
CachedPublicKeyData cachedPublicKeyData
Functor returning the keyrings data (cached).
Definition at line 269 of file KeyRing.cc.
The documentation for this struct was generated from the following file: