mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed a few asserts
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5234 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b603ef9d9f
commit
d825508836
@ -311,7 +311,7 @@ static ops_boolean_t rsa_verify(ops_hash_algorithm_t type,
|
||||
|
||||
default:
|
||||
fprintf(stderr,"Warning: unhandled hash type in signature verification code: %d\n",type) ;
|
||||
assert(0); break;
|
||||
return ops_false ;
|
||||
}
|
||||
|
||||
if(keysize-plen-hash_length < 10)
|
||||
@ -439,7 +439,9 @@ ops_boolean_t ops_check_signature(const unsigned char *hash, unsigned length,
|
||||
break;
|
||||
|
||||
default:
|
||||
assert(0);
|
||||
fprintf(stderr,"Cannot verify signature. Unknown key signing algorithm %d. skipping.\n",sig->info.key_algorithm) ;
|
||||
ret = ops_false ;
|
||||
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user