zypp::KeyRing::Impl Struct Reference

KeyRing implementation. More...

List of all members.

Public Member Functions

 Impl ()
void importKey (const Pathname &keyfile, bool trusted=false)
PublicKey readPublicKey (const Pathname &keyfile)
std::string readSignatureKeyId (const Pathname &signature)
void deleteKey (const std::string &id, bool trusted)
std::list< PublicKeytrustedPublicKeys ()
std::list< PublicKeypublicKeys ()
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< Implnullimpl ()
 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)
void exportKey (std::string id, const Pathname &keyfile, bool trusted)
void deleteKey (const std::string &id, const Pathname &keyring)
std::list< PublicKeypublicKeys (const Pathname &keyring)
bool publicKeyExists (std::string id, const Pathname &keyring)
Implclone () const
 clone for RWCOW_pointer

Private Attributes

Pathname _general_kr
Pathname _trusted_kr
TmpDir _trusted_tmp_dir
TmpDir _general_tmp_dir

Friends

ImplrwcowClone (const Impl *rhs)


Detailed Description

KeyRing implementation.

Definition at line 83 of file KeyRing.cc.


Constructor & Destructor Documentation

zypp::KeyRing::Impl::Impl  )  [inline]
 

Definition at line 85 of file KeyRing.cc.

References _general_kr, _general_tmp_dir, _trusted_kr, _trusted_tmp_dir, and zypp::filesystem::TmpPath::path().

Referenced by clone().


Member Function Documentation

void zypp::KeyRing::Impl::importKey const Pathname keyfile,
bool  trusted = false
 

Definition at line 149 of file KeyRing.cc.

References _general_kr, and _trusted_kr.

Referenced by verifyFileSignatureWorkflow().

PublicKey zypp::KeyRing::Impl::readPublicKey const Pathname keyfile  ) 
 

Definition at line 331 of file KeyRing.cc.

References zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::Discard_Stderr, zypp::PublicKey::fingerprint, zypp::PublicKey::id, zypp::PublicKey::name, zypp::filesystem::TmpPath::path(), and zypp::externalprogram::ExternalDataSource::receiveLine().

Referenced by verifyFileSignatureWorkflow().

std::string zypp::KeyRing::Impl::readSignatureKeyId const Pathname signature  ) 
 

Definition at line 505 of file KeyRing.cc.

References zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::Discard_Stderr, MIL, zypp::filesystem::TmpPath::path(), and zypp::externalprogram::ExternalDataSource::receiveLine().

Referenced by verifyFileSignatureWorkflow().

void zypp::KeyRing::Impl::deleteKey const std::string &  id,
bool  trusted
 

Definition at line 154 of file KeyRing.cc.

References _general_kr, and _trusted_kr.

std::list< PublicKey > zypp::KeyRing::Impl::trustedPublicKeys  ) 
 

Definition at line 164 of file KeyRing.cc.

References _trusted_kr, and publicKeys().

std::list< PublicKey > zypp::KeyRing::Impl::publicKeys  ) 
 

Definition at line 159 of file KeyRing.cc.

References _general_kr.

Referenced by publicKeyExists(), and trustedPublicKeys().

void zypp::KeyRing::Impl::dumpPublicKey const std::string &  id,
bool  trusted,
std::ostream &  stream
 

Definition at line 204 of file KeyRing.cc.

References _general_kr, _trusted_kr, zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::Discard_Stderr, and zypp::externalprogram::ExternalDataSource::receiveLine().

Referenced by exportKey().

bool zypp::KeyRing::Impl::verifyFileSignatureWorkflow const Pathname file,
const std::string  filedesc,
const Pathname signature
 

Definition at line 234 of file KeyRing.cc.

References _general_kr, _trusted_kr, zypp::filesystem::Pathname::empty(), exportKey(), zypp::PublicKey::fingerprint, zypp::PublicKey::id, importKey(), MIL, zypp::PublicKey::name, zypp::filesystem::TmpPath::path(), publicKeyExists(), readPublicKey(), readSignatureKeyId(), and verifyFile().

bool zypp::KeyRing::Impl::verifyFileSignature const Pathname file,
const Pathname signature
 

Definition at line 174 of file KeyRing.cc.

References _general_kr, and verifyFile().

bool zypp::KeyRing::Impl::verifyFileTrustedSignature const Pathname file,
const Pathname signature
 

Definition at line 169 of file KeyRing.cc.

References _trusted_kr, and verifyFile().

bool zypp::KeyRing::Impl::verifyFile const Pathname file,
const Pathname signature,
const Pathname keyring
[private]
 

Definition at line 553 of file KeyRing.cc.

References zypp::filesystem::Pathname::asString(), 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 449 of file KeyRing.cc.

References zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::close(), and zypp::ExternalProgram::Discard_Stderr.

void zypp::KeyRing::Impl::exportKey std::string  id,
const Pathname keyfile,
bool  trusted
[private]
 

Definition at line 191 of file KeyRing.cc.

References zypp::filesystem::Pathname::asString(), dumpPublicKey(), and ERR.

Referenced by verifyFileSignatureWorkflow().

void zypp::KeyRing::Impl::deleteKey const std::string &  id,
const Pathname keyring
[private]
 

Definition at line 476 of file KeyRing.cc.

References zypp::filesystem::Pathname::asString(), 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 386 of file KeyRing.cc.

References zypp::filesystem::Pathname::asString(), zypp::ExternalProgram::Discard_Stderr, 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 179 of file KeyRing.cc.

References MIL, and publicKeys().

Referenced by verifyFileSignatureWorkflow().

static shared_ptr<Impl> zypp::KeyRing::Impl::nullimpl  )  [inline, static]
 

Offer default Impl.

Definition at line 136 of file KeyRing.cc.

Impl* zypp::KeyRing::Impl::clone  )  const [inline, private]
 

clone for RWCOW_pointer

Definition at line 145 of file KeyRing.cc.

References Impl().


Friends And Related Function Documentation

Impl* rwcowClone const Impl rhs  )  [friend]
 


Member Data Documentation

Pathname zypp::KeyRing::Impl::_general_kr [private]
 

Definition at line 128 of file KeyRing.cc.

Referenced by deleteKey(), dumpPublicKey(), Impl(), importKey(), publicKeys(), verifyFileSignature(), and verifyFileSignatureWorkflow().

Pathname zypp::KeyRing::Impl::_trusted_kr [private]
 

Definition at line 129 of file KeyRing.cc.

Referenced by deleteKey(), dumpPublicKey(), Impl(), importKey(), trustedPublicKeys(), verifyFileSignatureWorkflow(), and verifyFileTrustedSignature().

TmpDir zypp::KeyRing::Impl::_trusted_tmp_dir [private]
 

Definition at line 132 of file KeyRing.cc.

Referenced by Impl().

TmpDir zypp::KeyRing::Impl::_general_tmp_dir [private]
 

Definition at line 133 of file KeyRing.cc.

Referenced by Impl().


The documentation for this struct was generated from the following file:
Generated on Mon Jun 5 19:10:49 2006 for zypp by  doxygen 1.4.6