mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
fixed self-signature checking for imported keys, previously causing imported certificates with signatures to be rejected
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8053 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
55988a5796
commit
90427eb08b
2 changed files with 3 additions and 8 deletions
|
@ -987,12 +987,7 @@ bool PGPHandler::LoadCertificateFromString(const std::string& pgp_cert,RsPgpId&
|
|||
//
|
||||
ops_validate_result_t* result=(ops_validate_result_t*)ops_mallocz(sizeof *result);
|
||||
|
||||
if(!ops_validate_key_signatures(result,keydata,tmp_keyring,cb_get_passphrase))
|
||||
{
|
||||
std::cerr << "Cannot validate self-signature for this certificate. Format error?" << std::endl;
|
||||
error_string = "Cannot validate self signature for this certificate. Format error?" ;
|
||||
return false ;
|
||||
}
|
||||
ops_validate_key_signatures(result,keydata,tmp_keyring,cb_get_passphrase) ;
|
||||
|
||||
bool found = false ;
|
||||
|
||||
|
@ -1265,7 +1260,7 @@ bool PGPHandler::decryptTextFromFile(const RsPgpId&,std::string& text,const std:
|
|||
|
||||
if (f == NULL)
|
||||
{
|
||||
std::cerr << "Cannot open file " << inputfile << " for read." << std::endl;
|
||||
std::cerr << "Cannot open file " << inputfile << " for read." << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue