From fa8a585e2011ef5f08be00391c06d8b71baa6f7e Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 15 Apr 2016 18:25:53 -0400 Subject: [PATCH] removed some debug info --- libbitdht/src/bitdht/bdnode.cc | 2 ++ libretroshare/src/gxs/rsgxsnetservice.cc | 2 -- libretroshare/src/pgp/pgpkeyutil.cc | 2 ++ libretroshare/src/services/p3idservice.cc | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libbitdht/src/bitdht/bdnode.cc b/libbitdht/src/bitdht/bdnode.cc index a994db475..fb6f35fb2 100644 --- a/libbitdht/src/bitdht/bdnode.cc +++ b/libbitdht/src/bitdht/bdnode.cc @@ -496,10 +496,12 @@ void bdNode::checkPotentialPeer(bdId *id, bdId *src) /* first check the filters */ if (!mFilterPeers.addrOkay(&(id->addr))) { +#ifdef DEBUG_NODE_MSGS std::cerr << "bdNode::checkPotentialPeer("; mFns->bdPrintId(std::cerr, id); std::cerr << ") BAD ADDRESS!!!! SHOULD DISCARD POTENTIAL PEER"; std::cerr << std::endl; +#endif return; } diff --git a/libretroshare/src/gxs/rsgxsnetservice.cc b/libretroshare/src/gxs/rsgxsnetservice.cc index 617b2d593..5aeb88bee 100644 --- a/libretroshare/src/gxs/rsgxsnetservice.cc +++ b/libretroshare/src/gxs/rsgxsnetservice.cc @@ -3669,8 +3669,6 @@ bool RsGxsNetService::encryptSingleNxsItem(RsNxsItem *item, const RsGxsCircleId& #ifdef NXS_NET_DEBUG_7 GXSNETDEBUG_P_ (item->PeerId()) << "Service " << std::hex << ((mServiceInfo.mServiceType >> 8)& 0xffff) << std::dec << " - Encrypting single item for peer " << item->PeerId() << ", for circle ID " << destination_circle << std::endl; #endif - std::cerr << "RsGxsNetService::encryptSingleNxsItem()" << std::endl; - // 1 - Find out the list of GXS ids to encrypt for // We could do smarter things (like see if the peer_id owns one of the circle's identities // but for now we aim at the simplest solution: encrypt for all identities in the circle. diff --git a/libretroshare/src/pgp/pgpkeyutil.cc b/libretroshare/src/pgp/pgpkeyutil.cc index 2fc918721..50fca0482 100644 --- a/libretroshare/src/pgp/pgpkeyutil.cc +++ b/libretroshare/src/pgp/pgpkeyutil.cc @@ -173,7 +173,9 @@ bool PGPKeyManagement::parseSignature(const unsigned char *signature, size_t sig PGPKeyParser::read_packetHeader(data,packet_tag,packet_length) ; +#ifdef DEBUG_PGPUTIL std::cerr << "Packet tag : " << (int)packet_tag << ", length=" << packet_length << std::endl; +#endif // 2 - parse key data, only keep public key data, user id and self-signature. diff --git a/libretroshare/src/services/p3idservice.cc b/libretroshare/src/services/p3idservice.cc index 24755106a..0e2769205 100644 --- a/libretroshare/src/services/p3idservice.cc +++ b/libretroshare/src/services/p3idservice.cc @@ -3009,7 +3009,9 @@ bool p3IdService::checkId(const RsGxsIdGroup &grp, RsPgpId &pgpId,bool& error) if(mPgpUtils->parseSignature((unsigned char *) grp.mPgpIdSign.c_str(), grp.mPgpIdSign.length(),issuer_id)) { +#ifdef DEBUG_IDS std::cerr << "Issuer found: " << issuer_id << std::endl; +#endif pgpId = issuer_id ; } else