mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-03 02:50:07 -05:00
improved/removed debug info
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8413 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
53daf911fb
commit
258c4e4afd
@ -9,7 +9,7 @@
|
||||
#include "rscertificate.h"
|
||||
#include "util/rsstring.h"
|
||||
|
||||
#define DEBUG_RSCERTIFICATE
|
||||
//#define DEBUG_RSCERTIFICATE
|
||||
|
||||
static const std::string PGP_CERTIFICATE_START ( "-----BEGIN PGP PUBLIC KEY BLOCK-----" );
|
||||
static const std::string PGP_CERTIFICATE_END ( "-----END PGP PUBLIC KEY BLOCK-----" );
|
||||
|
@ -163,8 +163,9 @@ template<uint32_t ID_SIZE_IN_BYTES,bool UPPER_CASE,uint32_t UNIQUE_IDENTIFIER> t
|
||||
int n=0;
|
||||
if(s.length() != ID_SIZE_IN_BYTES*2)
|
||||
{
|
||||
if(!s.empty())
|
||||
std::cerr << "t_RsGenericIdType<>::t_RsGenericIdType(std::string&): supplied string in constructor has wrong size." << std::endl;
|
||||
if(!s.empty())
|
||||
std::cerr << "t_RsGenericIdType<>::t_RsGenericIdType(std::string&): supplied string in constructor has wrong size. Expected ID size=" << ID_SIZE_IN_BYTES << " String=\"" << s << "\"" << std::endl;
|
||||
|
||||
clear();
|
||||
return;
|
||||
}
|
||||
@ -184,8 +185,8 @@ template<uint32_t ID_SIZE_IN_BYTES,bool UPPER_CASE,uint32_t UNIQUE_IDENTIFIER> t
|
||||
else if(b >= '0' && b <= '9')
|
||||
bytes[i] += (b-'0') << 4*(1-k) ;
|
||||
else {
|
||||
std::cerr << "t_RsGenericIdType<>::t_RsGenericIdType(std::string&): supplied string is not purely hexadecimal" << std::endl;
|
||||
clear();
|
||||
std::cerr << "t_RsGenericIdType<>::t_RsGenericIdType(std::string&): supplied string is not purely hexadecimal: s=\"" << s << "\"" << std::endl;
|
||||
clear();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -281,7 +281,9 @@ void RetroShareLink::fromUrl(const QUrl& url)
|
||||
_type = TYPE_CERTIFICATE;
|
||||
_radix = urlQuery.queryItemValue(CERTIFICATE_RADIX);
|
||||
|
||||
std::cerr << "Got a certificate link!!" << std::endl;
|
||||
#ifdef DEBUG_RSLINK
|
||||
std::cerr << "Got a certificate link!!" << std::endl;
|
||||
#endif
|
||||
check() ;
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user