removed some debugging output

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5560 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-09-17 20:09:38 +00:00
parent 8a41dd67ce
commit 41cb5b7d34
3 changed files with 13 additions and 2 deletions

View File

@ -957,12 +957,16 @@ RsStackFileLock::RsStackFileLock(const std::string& file_path)
sleep(1) ; sleep(1) ;
#endif #endif
} }
#ifdef RSDIR_DEBUG
std::cerr << "Acquired file handle " << _file_handle << ", lock file:" << file_path << std::endl; std::cerr << "Acquired file handle " << _file_handle << ", lock file:" << file_path << std::endl;
#endif
} }
RsStackFileLock::~RsStackFileLock() RsStackFileLock::~RsStackFileLock()
{ {
RsDirUtil::releaseLockFile(_file_handle) ; RsDirUtil::releaseLockFile(_file_handle) ;
#ifdef RSDIR_DEBUG
std::cerr << "Released file lock with handle " << _file_handle << std::endl; std::cerr << "Released file lock with handle " << _file_handle << std::endl;
#endif
} }
#if 0 // NOT ENABLED YET! #if 0 // NOT ENABLED YET!

View File

@ -381,6 +381,8 @@ void ops_hash_sha224(ops_hash_t *hash)
*hash=sha224; *hash=sha224;
} }
ops_boolean_t already_said = ops_false ;
ops_boolean_t ops_dsa_verify(const unsigned char *hash,size_t hash_length, ops_boolean_t ops_dsa_verify(const unsigned char *hash,size_t hash_length,
const ops_dsa_signature_t *sig, const ops_dsa_signature_t *sig,
const ops_dsa_public_key_t *dsa) const ops_dsa_public_key_t *dsa)
@ -394,8 +396,12 @@ ops_boolean_t ops_dsa_verify(const unsigned char *hash,size_t hash_length,
osig->s=sig->s; osig->s=sig->s;
if(BN_num_bits(dsa->q) != 160) if(BN_num_bits(dsa->q) != 160)
{
if(!already_said)
{ {
fprintf(stderr,"(WW) ops_dsa_verify: openssl does only supports 'q' of 160 bits. Current is %d bits.\n",BN_num_bits(dsa->q)) ; fprintf(stderr,"(WW) ops_dsa_verify: openssl does only supports 'q' of 160 bits. Current is %d bits.\n",BN_num_bits(dsa->q)) ;
already_said=ops_true ;
}
osig->r=osig->s=NULL; osig->r=osig->s=NULL;
DSA_SIG_free(osig); DSA_SIG_free(osig);
return ops_false ; return ops_false ;

View File

@ -806,6 +806,7 @@ ops_boolean_t ops_validate_detached_signature(const void *literal_data, unsigned
ops_parse(pinfo); ops_parse(pinfo);
if(debug)
printf("valid=%d, invalid=%d, unknown=%d\n", result->valid_count, result->invalid_count, result->unknown_signer_count); printf("valid=%d, invalid=%d, unknown=%d\n", result->valid_count, result->invalid_count, result->unknown_signer_count);
// Tidy up // Tidy up