}
(void)sk_IPAddressFamily_set_cmp_func(addr, IPAddressFamily_cmp);
sk_IPAddressFamily_sort(addr);
- if (!ossl_assert(X509v3_addr_is_canonical(addr)))
+ if (!OPENSSL_assert(X509v3_addr_is_canonical(addr)))
return 0;
return 1;
}
int i, j, ret = 1;
X509 *x;
- if (!ossl_assert(chain != NULL && sk_X509_num(chain) > 0)
- || !ossl_assert(ctx != NULL || ext != NULL)
- || !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) {
+ if (!OPENSSL_assert(chain != NULL && sk_X509_num(chain) > 0)
+ || !OPENSSL_assert(ctx != NULL || ext != NULL)
+ || !OPENSSL_assert(ctx == NULL || ctx->verify_cb != NULL)) {
if (ctx != NULL)
ctx->error = X509_V_ERR_UNSPECIFIED;
return 0;
{
const ASIdOrRange *a = *a_, *b = *b_;
- assert((a->type == ASIdOrRange_id && a->u.id != NULL) ||
+ OPENSSL_assert((a->type == ASIdOrRange_id && a->u.id != NULL) ||
(a->type == ASIdOrRange_range && a->u.range != NULL &&
a->u.range->min != NULL && a->u.range->max != NULL));
- assert((b->type == ASIdOrRange_id && b->u.id != NULL) ||
+ OPENSSL_assert((b->type == ASIdOrRange_id && b->u.id != NULL) ||
(b->type == ASIdOrRange_range && b->u.range != NULL &&
b->u.range->min != NULL && b->u.range->max != NULL));
static int extract_min_max(ASIdOrRange *aor,
ASN1_INTEGER **min, ASN1_INTEGER **max)
{
- if (!ossl_assert(aor != NULL))
+ if (!OPENSSL_assert(aor != NULL))
return 0;
switch (aor->type) {
case ASIdOrRange_id:
/*
* Make sure we're properly sorted (paranoia).
*/
- if (!ossl_assert(ASN1_INTEGER_cmp(a_min, b_min) <= 0))
+ if (!OPENSSL_assert(ASN1_INTEGER_cmp(a_min, b_min) <= 0))
goto done;
/*
}
/* Paranoia */
- if (!ossl_assert(ASIdentifierChoice_is_canonical(choice)))
+ if (!OPENSSL_assert(ASIdentifierChoice_is_canonical(choice)))
goto done;
ret = 1;
int i, ret = 1, inherit_as = 0, inherit_rdi = 0;
X509 *x;
- if (!ossl_assert(chain != NULL && sk_X509_num(chain) > 0)
- || !ossl_assert(ctx != NULL || ext != NULL)
- || !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) {
+ if (!OPENSSL_assert(chain != NULL && sk_X509_num(chain) > 0)
+ || !OPENSSL_assert(ctx != NULL || ext != NULL)
+ || !OPENSSL_assert(ctx == NULL || ctx->verify_cb != NULL)) {
if (ctx != NULL)
ctx->error = X509_V_ERR_UNSPECIFIED;
return 0;
*/
for (i++; i < sk_X509_num(chain); i++) {
x = sk_X509_value(chain, i);
- if (!ossl_assert(x != NULL)) {
+ if (!OPENSSL_assert(x != NULL)) {
if (ctx != NULL)
ctx->error = X509_V_ERR_UNSPECIFIED;
return 0;
/*
* Trust anchor can't inherit.
*/
- if (!ossl_assert(x != NULL)) {
+ if (!OPENSSL_assert(x != NULL)) {
if (ctx != NULL)
ctx->error = X509_V_ERR_UNSPECIFIED;
return 0;