提交 de61c03c 编写于 作者: M Matt Caswell

Remove OPENSSL_assert() from crypto/ec

Reviewed-by: NAndy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3740)
上级 64d9844a
...@@ -191,7 +191,8 @@ int EC_KEY_generate_key(EC_KEY *eckey) ...@@ -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) ...@@ -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);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册