Public Member Functions | |
| Impl (const Pathname &baseTmpDir) | |
| void | importKey (const PublicKey &key, bool trusted=false) |
| void | deleteKey (const std::string &id, bool trusted) |
| std::string | readSignatureKeyId (const Pathname &signature) |
| std::list< PublicKey > | trustedPublicKeys () |
| std::list< PublicKey > | publicKeys () |
| void | dumpPublicKey (const std::string &id, bool trusted, std::ostream &stream) |
| bool | verifyFileSignatureWorkflow (const Pathname &file, const std::string filedesc, const Pathname &signature) |
| bool | verifyFileSignature (const Pathname &file, const Pathname &signature) |
| bool | verifyFileTrustedSignature (const Pathname &file, const Pathname &signature) |
Static Public Member Functions | |
| 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 (std::string id, const Pathname &keyring) |
| void | dumpPublicKey (const std::string &id, const Pathname &keyring, std::ostream &stream) |
| void | deleteKey (const std::string &id, const Pathname &keyring) |
| std::list< PublicKey > | publicKeys (const Pathname &keyring) |
| bool | publicKeyExists (std::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) |
Definition at line 87 of file KeyRing.cc.
| zypp::KeyRing::Impl::Impl | ( | const Pathname & | baseTmpDir | ) | [inline] |
| void zypp::KeyRing::Impl::importKey | ( | const PublicKey & | key, | |
| bool | trusted = false | |||
| ) |
Definition at line 166 of file KeyRing.cc.
References generalKeyRing(), zypp::PublicKey::path(), and trustedKeyRing().
Referenced by verifyFileSignatureWorkflow().
| void zypp::KeyRing::Impl::deleteKey | ( | const std::string & | id, | |
| bool | trusted | |||
| ) |
| std::string zypp::KeyRing::Impl::readSignatureKeyId | ( | const Pathname & | signature | ) |
Definition at line 493 of file KeyRing.cc.
References _base_dir, zypp::ExternalProgram::close(), zypp::ExternalProgram::Discard_Stderr, MIL, zypp::filesystem::TmpPath::path(), and zypp::externalprogram::ExternalDataSource::receiveLine().
Referenced by verifyFileSignatureWorkflow().
| std::list< PublicKey > zypp::KeyRing::Impl::trustedPublicKeys | ( | ) |
| std::list< PublicKey > zypp::KeyRing::Impl::publicKeys | ( | ) |
Definition at line 178 of file KeyRing.cc.
References generalKeyRing().
Referenced by publicKeyExists(), and trustedPublicKeys().
| void zypp::KeyRing::Impl::dumpPublicKey | ( | const std::string & | id, | |
| bool | trusted, | |||
| std::ostream & | stream | |||
| ) |
Definition at line 235 of file KeyRing.cc.
References generalKeyRing(), and trustedKeyRing().
Referenced by exportKey().
| bool zypp::KeyRing::Impl::verifyFileSignatureWorkflow | ( | const Pathname & | file, | |
| const std::string | filedesc, | |||
| const Pathname & | signature | |||
| ) |
Definition at line 269 of file KeyRing.cc.
References exportKey(), generalKeyRing(), importKey(), MIL, zypp::PublicKey::name(), zypp::PublicKey::path(), publicKeyExists(), readSignatureKeyId(), report, trustedKeyRing(), and verifyFile().
| bool zypp::KeyRing::Impl::verifyFileSignature | ( | const Pathname & | file, | |
| const Pathname & | signature | |||
| ) |
| bool zypp::KeyRing::Impl::verifyFileTrustedSignature | ( | const Pathname & | file, | |
| const Pathname & | signature | |||
| ) |
| bool zypp::KeyRing::Impl::verifyFile | ( | const Pathname & | file, | |
| const Pathname & | signature, | |||
| const Pathname & | keyring | |||
| ) | [private] |
Definition at line 541 of file KeyRing.cc.
References zypp::ExternalProgram::close(), and zypp::ExternalProgram::Discard_Stderr.
Referenced by verifyFileSignature(), verifyFileSignatureWorkflow(), and verifyFileTrustedSignature().
| void zypp::KeyRing::Impl::importKey | ( | const Pathname & | keyfile, | |
| const Pathname & | keyring | |||
| ) | [private] |
Definition at line 434 of file KeyRing.cc.
References zypp::ExternalProgram::close(), zypp::ExternalProgram::Discard_Stderr, and ZYPP_THROW.
| PublicKey zypp::KeyRing::Impl::exportKey | ( | std::string | id, | |
| const Pathname & | keyring | |||
| ) | [private] |
Definition at line 210 of file KeyRing.cc.
References _base_dir, dumpPublicKey(), ERR, zypp::BadKeyException::keyFile(), MIL, zypp::filesystem::TmpPath::path(), and ZYPP_THROW.
Referenced by publicKeys(), and verifyFileSignatureWorkflow().
| void zypp::KeyRing::Impl::dumpPublicKey | ( | const std::string & | id, | |
| const Pathname & | keyring, | |||
| std::ostream & | stream | |||
| ) | [private] |
Definition at line 240 of file KeyRing.cc.
References zypp::ExternalProgram::close(), zypp::ExternalProgram::Discard_Stderr, and zypp::externalprogram::ExternalDataSource::receiveLine().
| void zypp::KeyRing::Impl::deleteKey | ( | const std::string & | id, | |
| const Pathname & | keyring | |||
| ) | [private] |
Definition at line 464 of file KeyRing.cc.
References zypp::ExternalProgram::close(), zypp::ExternalProgram::Discard_Stderr, MIL, and ZYPP_THROW.
| std::list< PublicKey > zypp::KeyRing::Impl::publicKeys | ( | const Pathname & | keyring | ) | [private] |
Definition at line 371 of file KeyRing.cc.
References zypp::ExternalProgram::close(), zypp::ExternalProgram::Discard_Stderr, exportKey(), zypp::PublicKey::fingerprint(), zypp::PublicKey::id(), MIL, zypp::PublicKey::name(), and zypp::externalprogram::ExternalDataSource::receiveLine().
| bool zypp::KeyRing::Impl::publicKeyExists | ( | std::string | id, | |
| const Pathname & | keyring | |||
| ) | [private] |
Definition at line 198 of file KeyRing.cc.
References MIL, and publicKeys().
Referenced by verifyFileSignatureWorkflow().
| const Pathname zypp::KeyRing::Impl::generalKeyRing | ( | ) | const [private] |
Definition at line 156 of file KeyRing.cc.
References _general_tmp_dir, and zypp::filesystem::TmpPath::path().
Referenced by deleteKey(), dumpPublicKey(), importKey(), publicKeys(), verifyFileSignature(), and verifyFileSignatureWorkflow().
| const Pathname zypp::KeyRing::Impl::trustedKeyRing | ( | ) | const [private] |
Definition at line 161 of file KeyRing.cc.
References _trusted_tmp_dir, and zypp::filesystem::TmpPath::path().
Referenced by deleteKey(), dumpPublicKey(), importKey(), trustedPublicKeys(), verifyFileSignatureWorkflow(), and verifyFileTrustedSignature().
| static shared_ptr<Impl> zypp::KeyRing::Impl::nullimpl | ( | ) | [inline, static] |
| Impl* zypp::KeyRing::Impl::clone | ( | ) | const [inline, private] |
TmpDir zypp::KeyRing::Impl::_trusted_tmp_dir [private] |
TmpDir zypp::KeyRing::Impl::_general_tmp_dir [private] |
Pathname zypp::KeyRing::Impl::_base_dir [private] |
1.5.0