mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
commented out unused (and buggy) function in authgpg
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8054 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
90427eb08b
commit
1f4d827140
@ -477,23 +477,23 @@ bool AuthGPG::getGPGSignedList(std::list<RsPgpId> &ids)
|
|||||||
return getGPGFilteredList(ids,&filter_OwnSigned);
|
return getGPGFilteredList(ids,&filter_OwnSigned);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AuthGPG::getCachedGPGCertificate(const RsPgpId &id, std::string &certificate)
|
// bool AuthGPG::getCachedGPGCertificate(const RsPgpId &id, std::string &certificate)
|
||||||
{
|
// {
|
||||||
RsStackMutex stack(gpgMtxData); /******* LOCKED ******/
|
// RsStackMutex stack(gpgMtxData); /******* LOCKED ******/
|
||||||
#ifdef LIMIT_CERTIFICATE_SIZE
|
|
||||||
certificate = PGPHandler::SaveCertificateToString(RsPgpId(id),false) ;
|
|
||||||
#else
|
|
||||||
certificate = PGPHandler::SaveCertificateToString(RsPgpId(id),true) ;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// #ifdef LIMIT_CERTIFICATE_SIZE
|
// #ifdef LIMIT_CERTIFICATE_SIZE
|
||||||
// std::string cleaned_key ;
|
// certificate = PGPHandler::SaveCertificateToString(RsPgpId(id),false) ;
|
||||||
// if(PGPKeyManagement::createMinimalKey(certificate,cleaned_key))
|
// #else
|
||||||
// certificate = cleaned_key ;
|
// certificate = PGPHandler::SaveCertificateToString(RsPgpId(id),true) ;
|
||||||
// #endif
|
// #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
|
* Loading and Saving Certificates - this has to
|
||||||
|
@ -179,7 +179,7 @@ class AuthGPG: public p3Config, public RsThread, public PGPHandler
|
|||||||
virtual std::string SaveCertificateToString(const RsPgpId &id,bool include_signatures) ;
|
virtual std::string SaveCertificateToString(const RsPgpId &id,bool include_signatures) ;
|
||||||
|
|
||||||
// Cached certificates.
|
// Cached certificates.
|
||||||
bool getCachedGPGCertificate(const RsPgpId &id, std::string &certificate);
|
//bool getCachedGPGCertificate(const RsPgpId &id, std::string &certificate);
|
||||||
|
|
||||||
/*********************************************************************************/
|
/*********************************************************************************/
|
||||||
/************************* STAGE 6 ***********************************************/
|
/************************* STAGE 6 ***********************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user