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:
csoler 2012-06-19 18:58:07 +00:00
parent b603ef9d9f
commit d825508836

View File

@ -311,7 +311,7 @@ static ops_boolean_t rsa_verify(ops_hash_algorithm_t type,
default: default:
fprintf(stderr,"Warning: unhandled hash type in signature verification code: %d\n",type) ; 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) if(keysize-plen-hash_length < 10)
@ -439,7 +439,9 @@ ops_boolean_t ops_check_signature(const unsigned char *hash, unsigned length,
break; break;
default: default:
assert(0); fprintf(stderr,"Cannot verify signature. Unknown key signing algorithm %d. skipping.\n",sig->info.key_algorithm) ;
ret = ops_false ;
} }
return ret; return ret;