Remove OPENSSL_assert() from crypto/ec

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3740)
This commit is contained in:
Matt Caswell 2017-06-21 15:54:45 +01:00
parent 64d9844ab6
commit de61c03cc7
2 changed files with 4 additions and 2 deletions

View File

@ -191,7 +191,8 @@ int EC_KEY_generate_key(EC_KEY *eckey)
int ossl_ec_key_gen(EC_KEY *eckey)
{
OPENSSL_assert(eckey->group->meth->keygen != NULL);
if (!ossl_assert(eckey->group->meth->keygen != NULL))
return 0;
return eckey->group->meth->keygen(eckey);
}

View File

@ -330,7 +330,8 @@ const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group)
int EC_GROUP_order_bits(const EC_GROUP *group)
{
OPENSSL_assert(group->meth->group_order_bits != NULL);
if (!ossl_assert(group->meth->group_order_bits != NULL))
return 0;
return group->meth->group_order_bits(group);
}