Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3740)
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);
}
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);
}