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) |
| bool | isKeyTrusted (const std::string &id) |
| bool | isKeyKnown (const std::string &id) |
| 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.
|
|
Definition at line 89 of file KeyRing.cc. Referenced by clone(), and nullimpl(). |
|
||||||||||||
|
Definition at line 169 of file KeyRing.cc. References generalKeyRing(), zypp::PublicKey::path(), and trustedKeyRing(). Referenced by verifyFileSignatureWorkflow(). |
|
||||||||||||
|
Definition at line 176 of file KeyRing.cc. References generalKeyRing(), and trustedKeyRing(). |
|
|
Definition at line 509 of file KeyRing.cc. References _base_dir, zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::Discard_Stderr, MIL, zypp::filesystem::TmpPath::path(), and zypp::externalprogram::ExternalDataSource::receiveLine(). Referenced by verifyFileSignatureWorkflow(). |
|
|
Definition at line 201 of file KeyRing.cc. References publicKeyExists(), and trustedKeyRing(). |
|
|
Definition at line 206 of file KeyRing.cc. References generalKeyRing(), publicKeyExists(), and trustedKeyRing(). |
|
|
Definition at line 186 of file KeyRing.cc. References publicKeys(), and trustedKeyRing(). |
|
|
Definition at line 181 of file KeyRing.cc. References generalKeyRing(). Referenced by publicKeyExists(), and trustedPublicKeys(). |
|
||||||||||||||||
|
Definition at line 251 of file KeyRing.cc. References generalKeyRing(), and trustedKeyRing(). Referenced by exportKey(). |
|
||||||||||||||||
|
Definition at line 285 of file KeyRing.cc. References zypp::filesystem::Pathname::empty(), exportKey(), generalKeyRing(), importKey(), MIL, zypp::PublicKey::name(), zypp::PublicKey::path(), publicKeyExists(), readSignatureKeyId(), report, trustedKeyRing(), and verifyFile(). |
|
||||||||||||
|
Definition at line 196 of file KeyRing.cc. References generalKeyRing(), and verifyFile(). |
|
||||||||||||
|
Definition at line 191 of file KeyRing.cc. References trustedKeyRing(), and verifyFile(). |
|
||||||||||||||||
|
Definition at line 557 of file KeyRing.cc. References zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::close(), and zypp::ExternalProgram::Discard_Stderr. Referenced by verifyFileSignature(), verifyFileSignatureWorkflow(), and verifyFileTrustedSignature(). |
|
||||||||||||
|
Definition at line 450 of file KeyRing.cc. References zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::close(), zypp::ExternalProgram::Discard_Stderr, and ZYPP_THROW. |
|
||||||||||||
|
Definition at line 226 of file KeyRing.cc. References _base_dir, zypp::filesystem::Pathname::asString(), dumpPublicKey(), ERR, zypp::BadKeyException::keyFile(), MIL, zypp::filesystem::TmpPath::path(), and ZYPP_THROW. Referenced by publicKeys(), and verifyFileSignatureWorkflow(). |
|
||||||||||||||||
|
Definition at line 256 of file KeyRing.cc. References zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::Discard_Stderr, and zypp::externalprogram::ExternalDataSource::receiveLine(). |
|
||||||||||||
|
Definition at line 480 of file KeyRing.cc. References zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::close(), zypp::ExternalProgram::Discard_Stderr, MIL, and ZYPP_THROW. |
|
|
Definition at line 387 of file KeyRing.cc. References zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::Discard_Stderr, exportKey(), zypp::PublicKey::fingerprint(), zypp::PublicKey::id(), MIL, zypp::PublicKey::name(), and zypp::externalprogram::ExternalDataSource::receiveLine(). |
|
||||||||||||
|
Definition at line 214 of file KeyRing.cc. References MIL, and publicKeys(). Referenced by isKeyKnown(), isKeyTrusted(), and verifyFileSignatureWorkflow(). |
|
|
Definition at line 159 of file KeyRing.cc. References _general_tmp_dir, and zypp::filesystem::TmpPath::path(). Referenced by deleteKey(), dumpPublicKey(), importKey(), isKeyKnown(), publicKeys(), verifyFileSignature(), and verifyFileSignatureWorkflow(). |
|
|
Definition at line 164 of file KeyRing.cc. References _trusted_tmp_dir, and zypp::filesystem::TmpPath::path(). Referenced by deleteKey(), dumpPublicKey(), importKey(), isKeyKnown(), isKeyTrusted(), trustedPublicKeys(), verifyFileSignatureWorkflow(), and verifyFileTrustedSignature(). |
|
|
Offer default Impl.
Definition at line 145 of file KeyRing.cc. References Impl(). |
|
|
clone for RWCOW_pointer
Definition at line 154 of file KeyRing.cc. References Impl(). |
|
|
|
|
|
Definition at line 140 of file KeyRing.cc. Referenced by trustedKeyRing(). |
|
|
Definition at line 141 of file KeyRing.cc. Referenced by generalKeyRing(). |
|
|
Definition at line 142 of file KeyRing.cc. Referenced by exportKey(), and readSignatureKeyId(). |
1.4.6