int ossl_ec_key_gen(EC_KEY *eckey)
{
- 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)
{
- if (!ossl_assert(group->meth->group_order_bits != NULL))
- return 0;
return group->meth->group_order_bits(group);
}
if ((aor = IPAddressOrRange_new()) == NULL)
return 0;
aor->type = IPAddressOrRange_addressRange;
- if (!ossl_assert(aor->u.addressRange == NULL))
- return 0;
if ((aor->u.addressRange = IPAddressRange_new()) == NULL)
goto err;
if (aor->u.addressRange->min == NULL &&
if (*choice == NULL) {
if ((*choice = ASIdentifierChoice_new()) == NULL)
return 0;
- if (!ossl_assert((*choice)->u.inherit == NULL))
- return 0;
if (((*choice)->u.inherit = ASN1_NULL_new()) == NULL)
return 0;
(*choice)->type = ASIdentifierChoice_inherit;
if (*choice == NULL) {
if ((*choice = ASIdentifierChoice_new()) == NULL)
return 0;
- if (!ossl_assert((*choice)->u.asIdsOrRanges == NULL))
- return 0;
(*choice)->u.asIdsOrRanges = sk_ASIdOrRange_new(ASIdOrRange_cmp);
if ((*choice)->u.asIdsOrRanges == NULL)
return 0;
static int extract_min_max(ASIdOrRange *aor,
ASN1_INTEGER **min, ASN1_INTEGER **max)
{
- if (!ossl_assert(aor != NULL && min != NULL && max != NULL))
+ if (!ossl_assert(aor != NULL))
return 0;
switch (aor->type) {
case ASIdOrRange_id: