mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 00:19:30 -05:00
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:
parent
8a41dd67ce
commit
41cb5b7d34
@ -957,12 +957,16 @@ RsStackFileLock::RsStackFileLock(const std::string& file_path)
|
||||
sleep(1) ;
|
||||
#endif
|
||||
}
|
||||
#ifdef RSDIR_DEBUG
|
||||
std::cerr << "Acquired file handle " << _file_handle << ", lock file:" << file_path << std::endl;
|
||||
#endif
|
||||
}
|
||||
RsStackFileLock::~RsStackFileLock()
|
||||
{
|
||||
RsDirUtil::releaseLockFile(_file_handle) ;
|
||||
#ifdef RSDIR_DEBUG
|
||||
std::cerr << "Released file lock with handle " << _file_handle << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
#if 0 // NOT ENABLED YET!
|
||||
|
@ -381,6 +381,8 @@ void ops_hash_sha224(ops_hash_t *hash)
|
||||
*hash=sha224;
|
||||
}
|
||||
|
||||
ops_boolean_t already_said = ops_false ;
|
||||
|
||||
ops_boolean_t ops_dsa_verify(const unsigned char *hash,size_t hash_length,
|
||||
const ops_dsa_signature_t *sig,
|
||||
const ops_dsa_public_key_t *dsa)
|
||||
@ -395,7 +397,11 @@ ops_boolean_t ops_dsa_verify(const unsigned char *hash,size_t hash_length,
|
||||
|
||||
if(BN_num_bits(dsa->q) != 160)
|
||||
{
|
||||
fprintf(stderr,"(WW) ops_dsa_verify: openssl does only supports 'q' of 160 bits. Current is %d bits.\n",BN_num_bits(dsa->q)) ;
|
||||
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)) ;
|
||||
already_said=ops_true ;
|
||||
}
|
||||
osig->r=osig->s=NULL;
|
||||
DSA_SIG_free(osig);
|
||||
return ops_false ;
|
||||
|
@ -806,7 +806,8 @@ ops_boolean_t ops_validate_detached_signature(const void *literal_data, unsigned
|
||||
|
||||
ops_parse(pinfo);
|
||||
|
||||
printf("valid=%d, invalid=%d, unknown=%d\n", result->valid_count, result->invalid_count, result->unknown_signer_count);
|
||||
if(debug)
|
||||
printf("valid=%d, invalid=%d, unknown=%d\n", result->valid_count, result->invalid_count, result->unknown_signer_count);
|
||||
|
||||
// Tidy up
|
||||
//if (armoured)
|
||||
|
Loading…
Reference in New Issue
Block a user