GPGCheck Class Reference

#include <GPGCheck.h>

List of all members.

Public Member Functions

 GPGCheck ()
void set_keyring (const Pathname &keyring)
bool check_file (const Pathname &filename, bool strip=false)
bool check_file (const Pathname &sourceFile, const Pathname &destFile)

Private Attributes

std::string _keyring
std::string _gnupghome


Constructor & Destructor Documentation

GPGCheck::GPGCheck (  ) 


Member Function Documentation

void GPGCheck::set_keyring ( const Pathname keyring  ) 

Set keyring.

bool GPGCheck::check_file ( const Pathname filename,
bool  strip = false 
)

Check signature of given file.

Parameters:
filename Name of file to be checked.
strip If true, signature is stripped from file
Returns:
True, if the signature is valid, false if not.

bool GPGCheck::check_file ( const Pathname sourceFile,
const Pathname destFile 
)

Check signature of given file. Strip signature from file and write result to destination. This is done regardless, if the signature is valid or not.

Parameters:
sourceFile Name of file to be checked.
destFile Destination where stripped file will be written.
Returns:
true, if signature is valid, false if not.


Member Data Documentation

std::string GPGCheck::_keyring [private]

std::string GPGCheck::_gnupghome [private]


The documentation for this class was generated from the following file:
Generated on Fri Sep 21 22:35:03 2007 for liby2util by  doxygen 1.5.3