Commit de61c03c authored by Matt Caswell's avatar Matt Caswell
Browse files

Remove OPENSSL_assert() from crypto/ec

parent 64d9844a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
}

+2 −1
Original line number Diff line number Diff line
@@ -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);
}