mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-16 21:12:31 -04:00
Added PGP GxsId signature creation
group creation operates on a 10 second timeout rather than number of attempts git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6205 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7c0fb5eced
commit
12172e3acc
4 changed files with 194 additions and 132 deletions
|
@ -194,6 +194,7 @@ bool NotifyQt::askForDeferredSelfSignature(const void *data, const uint32_t len,
|
|||
std::map<std::string,SignatureEventData*>::iterator it = _deferred_signature_queue.find(chksum.toStdString()) ;
|
||||
|
||||
if(it != _deferred_signature_queue.end())
|
||||
{
|
||||
if(it->second->signature_result != 0) // found it. Copy the result, and remove from the queue.
|
||||
{
|
||||
// We should check for the exact data match, for the sake of being totally secure.
|
||||
|
@ -211,6 +212,7 @@ bool NotifyQt::askForDeferredSelfSignature(const void *data, const uint32_t len,
|
|||
}
|
||||
else
|
||||
return false ; // already registered, but not done yet.
|
||||
}
|
||||
|
||||
// Not found. Store in the queue and emit a signal.
|
||||
//
|
||||
|
@ -228,10 +230,21 @@ void NotifyQt::handleSignatureEvent()
|
|||
{
|
||||
std::cerr << "NotifyQt:: performing a deferred signature in the main GUI thread." << std::endl;
|
||||
|
||||
static bool working = false ;
|
||||
|
||||
if(!working)
|
||||
{
|
||||
working = true ;
|
||||
|
||||
for(std::map<std::string,SignatureEventData*>::const_iterator it(_deferred_signature_queue.begin());it!=_deferred_signature_queue.end();++it)
|
||||
it->second->performSignature() ;
|
||||
|
||||
working = false ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool NotifyQt::askForPassword(const std::string& key_details, bool prev_is_bad, std::string& password)
|
||||
{
|
||||
RsAutoUpdatePage::lockAllEvents() ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue