improvements to openpgp-sdk integration. Added/tested key generation, keyring output

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5052 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-03-27 20:48:21 +00:00
parent 4299d09741
commit 765b6b9486
4 changed files with 123 additions and 7 deletions

View file

@ -8,6 +8,7 @@
extern "C" {
#include <openpgpsdk/types.h>
#include <openpgpsdk/keyring.h>
#include <openpgpsdk/keyring_local.h>
}
class PGPIdType
@ -15,6 +16,7 @@ class PGPIdType
public:
static const int KEY_ID_SIZE = 8 ;
PGPIdType() {}
PGPIdType(const std::string& hex_string) ;
PGPIdType(const unsigned char bytes[]) ;
@ -48,7 +50,7 @@ class PGPHandler
virtual bool VerifySignBin(const void*, uint32_t, unsigned char*, unsigned int, const std::string &withfingerprint) { return false ; }
// Debug stuff.
virtual bool printKeys() { return false;}
virtual void printKeys() const ;
private:
RsMutex pgphandlerMtx ;