|
libzypp
9.1.2
|
KeyRing implementation. More...
Public Member Functions | |
| void | importKey (const PublicKey &key, bool trusted=false) |
| void | multiKeyImport (const Pathname &keyfile_r, bool trusted_r=false) |
| void | deleteKey (const string &id, bool trusted) |
| string | readSignatureKeyId (const Pathname &signature) |
| bool | isKeyTrusted (const string &id) |
| bool | isKeyKnown (const string &id) |
| list< PublicKey > | trustedPublicKeys () |
| list< PublicKey > | publicKeys () |
| list< string > | trustedPublicKeyIds () |
| list< string > | publicKeyIds () |
| void | dumpPublicKey (const string &id, bool trusted, ostream &stream) |
| bool | verifyFileSignatureWorkflow (const Pathname &file, const string filedesc, const Pathname &signature, const KeyContext &keycontext=KeyContext()) |
| bool | verifyFileSignature (const Pathname &file, const Pathname &signature) |
| bool | verifyFileTrustedSignature (const Pathname &file, const Pathname &signature) |
Static Public Member Functions | |
| Impl (const Pathname &baseTmpDir) | |
| static shared_ptr< Impl > | nullimpl () |
| Offer default Impl. | |
Private Member Functions | |
| bool | verifyFile (const Pathname &file, const Pathname &signature, const Pathname &keyring) |
| void | importKey (const Pathname &keyfile, const Pathname &keyring) |
| PublicKey | exportKey (string id, const Pathname &keyring) |
| void | dumpPublicKey (const string &id, const Pathname &keyring, ostream &stream) |
| void | deleteKey (const string &id, const Pathname &keyring) |
| list< PublicKey > | publicKeys (const Pathname &keyring) |
| list< string > | publicKeyIds (const Pathname &keyring) |
| bool | publicKeyExists (string id, const Pathname &keyring) |
| const Pathname | generalKeyRing () const |
| const Pathname | trustedKeyRing () const |
| Impl * | clone () const |
| clone for RWCOW_pointer | |
Private Attributes | |
| TmpDir | _trusted_tmp_dir |
| TmpDir | _general_tmp_dir |
| Pathname | _base_dir |
Friends | |
| Impl * | rwcowClone (const Impl *rhs) |
KeyRing implementation.
Definition at line 86 of file KeyRing.cc.
| zypp::KeyRing::Impl::Impl | ( | const Pathname & | baseTmpDir | ) | [inline, static] |
Definition at line 88 of file KeyRing.cc.
References MIL.
| void zypp::KeyRing::Impl::importKey | ( | const PublicKey & | key, |
| bool | trusted = false |
||
| ) |
Definition at line 167 of file KeyRing.cc.
References zypp::PublicKey::path().
Referenced by zypp::KeyRing::importKey().
| void zypp::KeyRing::Impl::multiKeyImport | ( | const Pathname & | keyfile_r, |
| bool | trusted_r = false |
||
| ) |
Definition at line 181 of file KeyRing.cc.
Referenced by zypp::KeyRing::multiKeyImport().
| void zypp::KeyRing::Impl::deleteKey | ( | const string & | id, |
| bool | trusted | ||
| ) |
Definition at line 186 of file KeyRing.cc.
Referenced by zypp::KeyRing::deleteKey().
| string zypp::KeyRing::Impl::readSignatureKeyId | ( | const Pathname & | signature | ) |
Definition at line 589 of file KeyRing.cc.
References _, zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::close(), GPG_BINARY, MIL, zypp::filesystem::TmpPath::path(), zypp::externalprogram::ExternalDataSource::receiveLine(), zypp::str::regex_match(), zypp::str::smatch::size(), and ZYPP_THROW.
Referenced by zypp::KeyRing::readSignatureKeyId().
| bool zypp::KeyRing::Impl::isKeyTrusted | ( | const string & | id | ) |
Definition at line 237 of file KeyRing.cc.
Referenced by zypp::KeyRing::isKeyTrusted().
| bool zypp::KeyRing::Impl::isKeyKnown | ( | const string & | id | ) |
Definition at line 242 of file KeyRing.cc.
References MIL.
Referenced by zypp::KeyRing::isKeyKnown().
| list< PublicKey > zypp::KeyRing::Impl::trustedPublicKeys | ( | ) |
Definition at line 212 of file KeyRing.cc.
Referenced by zypp::KeyRing::trustedPublicKeys().
| list< PublicKey > zypp::KeyRing::Impl::publicKeys | ( | ) |
Definition at line 207 of file KeyRing.cc.
Referenced by zypp::KeyRing::publicKeys().
| list< string > zypp::KeyRing::Impl::trustedPublicKeyIds | ( | ) |
Definition at line 222 of file KeyRing.cc.
Referenced by zypp::KeyRing::trustedPublicKeyIds().
| list< string > zypp::KeyRing::Impl::publicKeyIds | ( | ) |
Definition at line 217 of file KeyRing.cc.
Referenced by zypp::KeyRing::publicKeyIds().
| void zypp::KeyRing::Impl::dumpPublicKey | ( | const string & | id, |
| bool | trusted, | ||
| ostream & | stream | ||
| ) |
Definition at line 291 of file KeyRing.cc.
Referenced by zypp::KeyRing::dumpPublicKey().
| bool zypp::KeyRing::Impl::verifyFileSignatureWorkflow | ( | const Pathname & | file, |
| const string | filedesc, | ||
| const Pathname & | signature, | ||
| const KeyContext & | keycontext = KeyContext() |
||
| ) |
Definition at line 325 of file KeyRing.cc.
References zypp::PublicKey::created(), zypp::PublicKey::fingerprint(), MIL, zypp::PublicKey::name(), zypp::PublicKey::path(), and report.
Referenced by zypp::KeyRing::verifyFileSignatureWorkflow().
| bool zypp::KeyRing::Impl::verifyFileSignature | ( | const Pathname & | file, |
| const Pathname & | signature | ||
| ) |
Definition at line 232 of file KeyRing.cc.
Referenced by zypp::KeyRing::verifyFileSignature().
| bool zypp::KeyRing::Impl::verifyFileTrustedSignature | ( | const Pathname & | file, |
| const Pathname & | signature | ||
| ) |
Definition at line 227 of file KeyRing.cc.
Referenced by zypp::KeyRing::verifyFileTrustedSignature().
| bool zypp::KeyRing::Impl::verifyFile | ( | const Pathname & | file, |
| const Pathname & | signature, | ||
| const Pathname & | keyring | ||
| ) | [private] |
Definition at line 647 of file KeyRing.cc.
References zypp::ExternalProgram::close(), and GPG_BINARY.
| void zypp::KeyRing::Impl::importKey | ( | const Pathname & | keyfile, |
| const Pathname & | keyring | ||
| ) | [private] |
Definition at line 527 of file KeyRing.cc.
References _, zypp::ExternalProgram::close(), GPG_BINARY, and ZYPP_THROW.
| PublicKey zypp::KeyRing::Impl::exportKey | ( | string | id, |
| const Pathname & | keyring | ||
| ) | [private] |
Definition at line 264 of file KeyRing.cc.
References _, zypp::filesystem::Pathname::c_str(), ERR, zypp::BadKeyException::keyFile(), MIL, zypp::filesystem::TmpPath::path(), and ZYPP_THROW.
| void zypp::KeyRing::Impl::dumpPublicKey | ( | const string & | id, |
| const Pathname & | keyring, | ||
| ostream & | stream | ||
| ) | [private] |
Definition at line 296 of file KeyRing.cc.
References zypp::ExternalProgram::close(), GPG_BINARY, and zypp::externalprogram::ExternalDataSource::receiveLine().
| void zypp::KeyRing::Impl::deleteKey | ( | const string & | id, |
| const Pathname & | keyring | ||
| ) | [private] |
Definition at line 560 of file KeyRing.cc.
References _, zypp::ExternalProgram::close(), GPG_BINARY, MIL, and ZYPP_THROW.
| list< PublicKey > zypp::KeyRing::Impl::publicKeys | ( | const Pathname & | keyring | ) | [private] |
Definition at line 511 of file KeyRing.cc.
References zypp::PublicKey::fingerprint(), zypp::PublicKey::id(), MIL, and zypp::PublicKey::name().
| list< string > zypp::KeyRing::Impl::publicKeyIds | ( | const Pathname & | keyring | ) | [private] |
Definition at line 446 of file KeyRing.cc.
References zypp::ExternalProgram::close(), GPG_BINARY, MIL, zypp::externalprogram::ExternalDataSource::receiveLine(), and zypp::str::regex_match().
| bool zypp::KeyRing::Impl::publicKeyExists | ( | string | id, |
| const Pathname & | keyring | ||
| ) | [private] |
Definition at line 251 of file KeyRing.cc.
References MIL.
| const Pathname zypp::KeyRing::Impl::generalKeyRing | ( | ) | const [private] |
Definition at line 157 of file KeyRing.cc.
| const Pathname zypp::KeyRing::Impl::trustedKeyRing | ( | ) | const [private] |
Definition at line 162 of file KeyRing.cc.
| static shared_ptr<Impl> zypp::KeyRing::Impl::nullimpl | ( | ) | [inline, static] |
Offer default Impl.
Definition at line 143 of file KeyRing.cc.
| Impl* zypp::KeyRing::Impl::clone | ( | ) | const [inline, private] |
clone for RWCOW_pointer
Definition at line 152 of file KeyRing.cc.
| Impl* rwcowClone | ( | const Impl * | rhs | ) | [friend] |
TmpDir zypp::KeyRing::Impl::_trusted_tmp_dir [private] |
Definition at line 138 of file KeyRing.cc.
TmpDir zypp::KeyRing::Impl::_general_tmp_dir [private] |
Definition at line 139 of file KeyRing.cc.
Pathname zypp::KeyRing::Impl::_base_dir [private] |
Definition at line 140 of file KeyRing.cc.
1.7.6.1