Plugged-in method for removing signatures in PGP keys => now RS has small and constant-sized certificates.

- added checkbox in ConfCertDialog to allow adding/removing signatures
- enabled again key signature button in friend wizard
- RS cert links now use small keys.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4836 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-01-23 20:55:08 +00:00
parent fadc86b189
commit a8456a2332
5 changed files with 48 additions and 15 deletions

View file

@ -78,6 +78,7 @@ ConfCertDialog::ConfCertDialog(const std::string& id, QWidget *parent, Qt::WFlag
connect(ui.denyFriendButton, SIGNAL(clicked()), this, SLOT(denyFriend()));
connect(ui.signKeyButton, SIGNAL(clicked()), this, SLOT(signGPGKey()));
connect(ui.trusthelpButton, SIGNAL(clicked()), this, SLOT(showHelpDialog()));
connect(ui._shouldAddSignatures_CB, SIGNAL(toggled(bool)), this, SLOT(loadInvitePage()));
#ifndef MINIMAL_RSGUI
MainWindow *w = MainWindow::getInstance();
@ -322,7 +323,23 @@ void ConfCertDialog::load()
}
ui.signers->setHtml(text);
std::string invite = rsPeers->GetRetroshareInvite(detail.id,true) ; // this needs to be a SSL id
loadInvitePage() ;
}
void ConfCertDialog::loadInvitePage()
{
RsPeerDetails detail;
if (!rsPeers->getPeerDetails(mId, detail))
{
QMessageBox::information(this,
tr("RetroShare"),
tr("Error : cannot get peer details."));
close();
return;
}
std::string invite = rsPeers->GetRetroshareInvite(detail.id,ui._shouldAddSignatures_CB->isChecked()) ; // this needs to be a SSL id
ui.userCertificateText->setReadOnly(true);
ui.userCertificateText->setMinimumHeight(200);