mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-11 15:50:38 -04:00
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:
parent
4299d09741
commit
765b6b9486
4 changed files with 123 additions and 7 deletions
|
@ -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 ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue