limited number of warnings for missuse of AuthGPG::getGPGName()

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5610 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-09-26 19:28:32 +00:00
parent 170bbf4ce2
commit fbc937c638

View File

@ -343,8 +343,13 @@ bool AuthGPG::GeneratePGPCertificate(const std::string& name,
std::string AuthGPG::getGPGName(const std::string &id,bool *success)
{
if(id.length() != 16)
{
static int already = 0 ;
if(already < 10)
{
std::cerr << "Wrong string passed to getGPGDetails: \"" << id << "\"" << std::endl;
already++ ;
}
return std::string() ;
}
RsStackMutex stack(gpgMtxData); /******* LOCKED ******/