mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 16:45:11 -04:00
fixed message in pgphandler when signing a post
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5547 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f4b13bbed3
commit
70b0733a32
2 changed files with 7 additions and 2 deletions
|
@ -991,7 +991,12 @@ bool PGPHandler::SignDataBin(const PGPIdType& id,const void *data, const uint32_
|
|||
return false ;
|
||||
}
|
||||
|
||||
std::string passphrase = _passphrase_callback(NULL,PGPIdType(key->key_id).toStdString().c_str(),"Please enter passwd for encrypting your key : ",false) ;
|
||||
std::string uid_hint ;
|
||||
if(key->nuids > 0)
|
||||
uid_hint = std::string((const char *)key->uids[0].user_id) ;
|
||||
uid_hint += "(" + PGPIdType(key->key_id).toStdString()+")" ;
|
||||
|
||||
std::string passphrase = _passphrase_callback(NULL,uid_hint.c_str(),"Please enter passwd for encrypting your key : ",false) ;
|
||||
|
||||
ops_secret_key_t *secret_key = ops_decrypt_secret_key_from_data(key,passphrase.c_str()) ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue