- CryptoPage now shows and exports clean certificate, without sslid & co

- ConnectFriendWizard exports the certificate with additional informations like sslid & co

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3142 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-06-15 21:07:22 +00:00
parent 1585859896
commit 540e99bc48
2 changed files with 5 additions and 5 deletions

View File

@ -661,7 +661,7 @@ void CertificatePage::loadFriendCert() {
void CertificatePage::generateCertificateCalled() {
qDebug() << " generateCertificateCalled";
std::string cert = rsPeers->saveCertificateToString(rsPeers->getOwnId());
std::string cert = rsPeers->GetRetroshareInvite();
if (cert.empty()) {
QMessageBox::information(this, tr("RetroShare"),
tr("Sorry, create certificate failed"),
@ -677,7 +677,7 @@ void CertificatePage::generateCertificateCalled() {
if (qdir.isEmpty() == false) {
QFile CertFile (qdir);
if (CertFile.open(QIODevice::WriteOnly | QIODevice::Text)) {
if (CertFile.open(QIODevice::WriteOnly/* | QIODevice::Text*/)) {
if (CertFile.write(QByteArray(cert.c_str())) > 0) {
QMessageBox::information(this, tr("RetroShare"),
tr("Certificate file successfully created"),

View File

@ -81,10 +81,10 @@ CryptoPage::load()
void
CryptoPage::loadPublicKey()
{
QFont font("Courier New",9,50,false) ;
ui.certtextEdit->setFont(font) ;
QFont font("Courier New",9,50,false) ;
ui.certtextEdit->setFont(font) ;
ui.certtextEdit->setPlainText(QString::fromStdString(rsPeers->GetRetroshareInvite()));
ui.certtextEdit->setPlainText(QString::fromStdString(rsPeers->saveCertificateToString(rsPeers->getOwnId())));
ui.certtextEdit->setReadOnly(true);
ui.certtextEdit->setMinimumHeight(200);
}