Lines Matching refs:ok
111 static int null_callback(int ok,X509_STORE_CTX *e);
141 static int null_callback(int ok, X509_STORE_CTX *e)
143 return ok;
159 int depth,i,ok=0;
255 ok = ctx->get_issuer(&xtmp, ctx, x);
256 if ((ok <= 0) || X509_cmp(x, xtmp))
261 if (ok == 1) X509_free(xtmp);
263 ok=cb(0,ctx);
264 if (!ok) goto end;
297 ok = ctx->get_issuer(&xtmp, ctx, x);
299 if (ok < 0) return ok;
300 if (ok == 0) break;
339 ok=cb(0,ctx);
340 if (!ok) goto end;
344 ok = check_chain_extensions(ctx);
346 if (!ok) goto end;
350 ok = check_name_constraints(ctx);
352 if (!ok) goto end;
354 /* The chain extensions are OK: check trust */
356 if (param->trust > 0) ok = check_trust(ctx);
358 if (!ok) goto end;
367 ok = ctx->check_revocation(ctx);
368 if(!ok) goto end;
372 ok=ctx->verify(ctx);
374 ok=internal_verify(ctx);
375 if(!ok) goto end;
379 ok = v3_asid_validate_path(ctx);
380 if (!ok) goto end;
381 ok = v3_addr_validate_path(ctx);
382 if (!ok) goto end;
387 ok = ctx->check_policy(ctx);
388 if(!ok) goto end;
396 return ok;
459 int i, ok=0, must_be_ca, plen = 0;
505 ok=cb(0,ctx);
506 if (!ok) goto end;
513 ok=cb(0,ctx);
514 if (!ok) goto end;
554 ok=cb(0,ctx);
555 if (!ok) goto end;
567 ok=cb(0,ctx);
568 if (!ok) goto end;
579 ok=cb(0,ctx);
580 if (!ok) goto end;
597 ok=cb(0,ctx);
598 if (!ok) goto end;
606 ok = 1;
608 return ok;
653 int i, ok;
660 ok = X509_check_trust(x, ctx->param->trust, 0);
661 if (ok == X509_TRUST_TRUSTED)
665 if (ok == X509_TRUST_REJECTED)
669 ok = cb(0, ctx);
670 return ok;
676 int i, last, ok;
691 ok = check_cert(ctx);
692 if (!ok) return ok;
701 int ok, cnum;
712 ok = ctx->get_crl(ctx, &crl, x);
714 ok = get_crl_delta(ctx, &crl, &dcrl, x);
718 if(!ok)
721 ok = ctx->verify_cb(0, ctx);
725 ok = ctx->check_crl(ctx, crl);
726 if (!ok)
731 ok = ctx->check_crl(ctx, dcrl);
732 if (!ok)
734 ok = ctx->cert_crl(ctx, dcrl, x);
735 if (!ok)
739 ok = 1;
742 if (ok != 2)
744 ok = ctx->cert_crl(ctx, crl, x);
745 if (!ok)
759 return ok;
1300 int ok;
1308 ok = get_crl_sk(ctx, &crl, &dcrl,
1311 if (ok)
1347 int ok = 0, chnum, cnum;
1366 ok = ctx->verify_cb(0, ctx);
1367 if(!ok) goto err;
1383 ok = ctx->verify_cb(0, ctx);
1384 if(!ok) goto err;
1390 ok = ctx->verify_cb(0, ctx);
1391 if(!ok) goto err;
1399 ok = ctx->verify_cb(0, ctx);
1400 if(!ok) goto err;
1407 ok = ctx->verify_cb(0, ctx);
1408 if(!ok) goto err;
1416 ok = check_crl_time(ctx, crl, 1);
1417 if (!ok)
1427 ok = ctx->verify_cb(0, ctx);
1428 if (!ok) goto err;
1436 ok = ctx->verify_cb(0, ctx);
1437 if (!ok) goto err;
1442 ok = 1;
1446 return ok;
1452 int ok;
1464 ok = ctx->verify_cb(0, ctx);
1465 if(!ok)
1476 ok = ctx->verify_cb(0, ctx);
1477 if (!ok)
1583 int ok=0,n;
1603 ok=cb(0,ctx);
1629 ok=(*cb)(0,ctx);
1630 if (!ok) goto end;
1636 ok=(*cb)(0,ctx);
1637 if (!ok)
1649 ok = check_cert_time(ctx, xs);
1650 if (!ok)
1656 ok=(*cb)(1,ctx);
1657 if (!ok) goto end;
1666 ok=1;
1668 return ok;