diff --git a/libretroshare/src/pqi/authgpg.cc b/libretroshare/src/pqi/authgpg.cc index 0cb573d11..024d530cd 100644 --- a/libretroshare/src/pqi/authgpg.cc +++ b/libretroshare/src/pqi/authgpg.cc @@ -477,23 +477,23 @@ bool AuthGPG::getGPGSignedList(std::list &ids) return getGPGFilteredList(ids,&filter_OwnSigned); } -bool AuthGPG::getCachedGPGCertificate(const RsPgpId &id, std::string &certificate) -{ - RsStackMutex stack(gpgMtxData); /******* LOCKED ******/ -#ifdef LIMIT_CERTIFICATE_SIZE - certificate = PGPHandler::SaveCertificateToString(RsPgpId(id),false) ; -#else - certificate = PGPHandler::SaveCertificateToString(RsPgpId(id),true) ; -#endif - +// bool AuthGPG::getCachedGPGCertificate(const RsPgpId &id, std::string &certificate) +// { +// RsStackMutex stack(gpgMtxData); /******* LOCKED ******/ // #ifdef LIMIT_CERTIFICATE_SIZE -// std::string cleaned_key ; -// if(PGPKeyManagement::createMinimalKey(certificate,cleaned_key)) -// certificate = cleaned_key ; +// certificate = PGPHandler::SaveCertificateToString(RsPgpId(id),false) ; +// #else +// certificate = PGPHandler::SaveCertificateToString(RsPgpId(id),true) ; // #endif - - return certificate.length() > 0 ; -} +// +// // #ifdef LIMIT_CERTIFICATE_SIZE +// // std::string cleaned_key ; +// // if(PGPKeyManagement::createMinimalKey(certificate,cleaned_key)) +// // certificate = cleaned_key ; +// // #endif +// +// return certificate.length() > 0 ; +// } /***************************************************************** * Loading and Saving Certificates - this has to diff --git a/libretroshare/src/pqi/authgpg.h b/libretroshare/src/pqi/authgpg.h index 4f7a2aed2..eedcf3c7c 100644 --- a/libretroshare/src/pqi/authgpg.h +++ b/libretroshare/src/pqi/authgpg.h @@ -179,7 +179,7 @@ class AuthGPG: public p3Config, public RsThread, public PGPHandler virtual std::string SaveCertificateToString(const RsPgpId &id,bool include_signatures) ; // Cached certificates. - bool getCachedGPGCertificate(const RsPgpId &id, std::string &certificate); + //bool getCachedGPGCertificate(const RsPgpId &id, std::string &certificate); /*********************************************************************************/ /************************* STAGE 6 ***********************************************/