mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
clean the cert only when manually inserted
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2092 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
045a70ab10
commit
fcb92631fb
@ -1202,7 +1202,8 @@ bool AuthGPG::LoadCertificateFromString(std::string str, std::string &gpg_id)
|
||||
|
||||
RsStackMutex stack(pgpMtx); /******* LOCKED ******/
|
||||
|
||||
std::string cleancert = cleanUpCertificate(str);
|
||||
//std::string cleancert = cleanUpCertificate(str); disable for p3disc message on windows system. Move the clean cert in p3peers
|
||||
std::string cleancert = str;
|
||||
|
||||
std::cerr << "AuthGPG::LoadCertificateFromString() cleancert : " << cleancert;
|
||||
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "pqi/authssl.h"
|
||||
#include "pqi/authgpg.h"
|
||||
#include <rsiface/rsinit.h>
|
||||
#include "pqi/cleanupxpgp.h"
|
||||
|
||||
|
||||
#include <iostream>
|
||||
@ -912,7 +913,8 @@ bool p3Peers::loadDetailsFromStringCert(std::string certstr, RsPeerDetails &pd)
|
||||
parsePosition += pgpend.length();
|
||||
std::string pgpCert = certstr.substr(0, parsePosition);
|
||||
std::string gpg_id;
|
||||
AuthGPG::getAuthGPG()->LoadCertificateFromString(pgpCert, gpg_id);
|
||||
std::string cleancert = cleanUpCertificate(pgpCert);
|
||||
AuthGPG::getAuthGPG()->LoadCertificateFromString(cleancert, gpg_id);
|
||||
AuthGPG::getAuthGPG()->getGPGDetails(gpg_id, pd);
|
||||
if (gpg_id == "") {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user