mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-29 19:24:37 +00:00
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:
parent
64d9844ab6
commit
de61c03cc7
@ -191,7 +191,8 @@ int EC_KEY_generate_key(EC_KEY *eckey)
|
|||||||
|
|
||||||
int ossl_ec_key_gen(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);
|
return eckey->group->meth->keygen(eckey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -330,7 +330,8 @@ const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group)
|
|||||||
|
|
||||||
int EC_GROUP_order_bits(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);
|
return group->meth->group_order_bits(group);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user