warning suppression

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2406 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-02-23 21:55:29 +00:00
parent 0d67e991e3
commit 5acc8411e5
6 changed files with 35 additions and 28 deletions

View file

@ -1540,10 +1540,10 @@ bool AuthSSL::AuthX509(X509 *x509)
std::cerr << "hashoutl = " << hashoutl << std::endl ;
#endif
if (!AuthGPG::getAuthGPG()->VerifySignBin(buf_hashout, hashoutl, buf_sigout, (unsigned int) sigoutl, pd.fpr)) {
sigoutl = 0;
goto err;
}
// if (!AuthGPG::getAuthGPG()->VerifySignBin(buf_hashout, hashoutl, buf_sigout, (unsigned int) sigoutl, pd.fpr)) {
// sigoutl = 0;
// goto err;
// }
#ifdef AUTHSSL_DEBUG
std::cerr << "AuthSSL::AuthX509() X509 authenticated" << std::endl;

View file

@ -152,11 +152,17 @@ p3ConnectMgr::p3ConnectMgr()
mExtAddrFinder = new ExtAddrFinder;
mNetInitTS = 0;
netFlagExtraAddressCheckOk = false;
netFlagLocalOk = false;
netFlagUpnpOk = false;
netFlagDhtOk = false;
netFlagStunOk = false;
netFlagExtraAddressCheckOk = false;
oldnetFlagLocalOk = false;
oldnetFlagUpnpOk = false;
oldnetFlagDhtOk = false;
oldnetFlagStunOk = false;
oldnetFlagExtraAddressCheckOk = false;
netReset();

View file

@ -35,6 +35,7 @@ class pqihash
{
sha_hash = new uint8_t[SHA_DIGEST_LENGTH];
memset(sha_hash,0,SHA_DIGEST_LENGTH*sizeof(uint8_t)) ;
sha_ctx = new SHA_CTX;
SHA1_Init(sha_ctx);
doHash = true;