mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
implement dummy friend for a gpg key, improve PersDialog ui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2018 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9976b80566
commit
e50dc4e3b9
9 changed files with 212 additions and 83 deletions
|
@ -1031,6 +1031,19 @@ bool AuthGPG::isGPGValid(GPG_id id)
|
|||
|
||||
}
|
||||
|
||||
bool AuthGPG::isGPGId(GPG_id id)
|
||||
{
|
||||
RsStackMutex stack(pgpMtx); /******* LOCKED ******/
|
||||
storeAllKeys_locked();
|
||||
certmap::iterator it;
|
||||
if (mKeyList.end() != (it = mKeyList.find(id))) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
bool AuthGPG::isGPGSigned(GPG_id id)
|
||||
{
|
||||
|
@ -1657,8 +1670,8 @@ static gpg_error_t keySignCallback(void *opaque, gpgme_status_code_t status, \
|
|||
else if (status == GPGME_STATUS_ALREADY_SIGNED)
|
||||
{
|
||||
/* The key has already been signed with this key */
|
||||
params->state = SIGN_ERROR;
|
||||
params->err = gpg_error (GPG_ERR_CONFLICT);
|
||||
params->state = SIGN_QUIT;
|
||||
result = "quit";
|
||||
}
|
||||
else if (status == GPGME_STATUS_GET_LINE &&
|
||||
(!std::string("keyedit.prompt").compare(args)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue