mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 06:20:44 -04:00
fixed bug in certificate signature
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5283 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0a6c60d2df
commit
54511ad390
3 changed files with 6 additions and 3 deletions
|
@ -24,7 +24,7 @@ extern "C" {
|
|||
#include "util/rsdir.h"
|
||||
#include "util/pgpkey.h"
|
||||
|
||||
#define DEBUG_PGPHANDLER
|
||||
//#define DEBUG_PGPHANDLER 1
|
||||
|
||||
PassphraseCallback PGPHandler::_passphrase_callback = NULL ;
|
||||
|
||||
|
@ -806,6 +806,9 @@ bool PGPHandler::VerifySignBin(const void *literal_data, uint32_t literal_data_l
|
|||
|
||||
#ifdef DEBUG_PGPHANDLER
|
||||
std::cerr << "Verifying signature from fingerprint " << key_fingerprint.toStdString() << ", length " << std::dec << sign_len << ", literal data length = " << literal_data_length << std::endl;
|
||||
std::cerr << "Signature body: " << std::endl;
|
||||
hexdump( sign,sign_len) ;
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
return ops_validate_detached_signature(literal_data,literal_data_length,sign,sign_len,key) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue