mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 11:01:22 -04:00
added display of SSL encryption parameters in PeerDetails dialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6465 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1ebde8788f
commit
9f88917ac1
12 changed files with 102 additions and 7 deletions
|
@ -199,9 +199,19 @@ void ConfCertDialog::load()
|
|||
std::map<std::string, std::string> versions;
|
||||
bool retv = rsDisc->getDiscVersions(versions);
|
||||
if (retv && versions.end() != (vit = versions.find(detail.id)))
|
||||
{
|
||||
ui.version->setText(QString::fromStdString(vit->second));
|
||||
}
|
||||
|
||||
RsPeerCryptoParams cdet ;
|
||||
if(rsicontrol->getPeerCryptoDetails(detail.id,cdet) && cdet.connexion_state!=0)
|
||||
{
|
||||
QString ct ;
|
||||
ct += QString::fromStdString(cdet.cipher_name) ;
|
||||
ct += QString::number(cdet.cipher_bits_1) ;
|
||||
ct += "-"+QString::fromStdString(cdet.cipher_version) ;
|
||||
ui.crypto_info->setText(ct) ;
|
||||
}
|
||||
else
|
||||
ui.crypto_info->setText(tr("Not connected")) ;
|
||||
|
||||
/* set local address */
|
||||
ui.localAddress->setText(QString::fromStdString(detail.localAddr));
|
||||
|
@ -245,6 +255,8 @@ void ConfCertDialog::load()
|
|||
ui.version->hide();
|
||||
ui.label_version->hide();
|
||||
ui.groupBox_4->hide();
|
||||
ui.crypto_info->hide();
|
||||
ui.crypto_label->hide();
|
||||
|
||||
ui.groupBox->hide();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue