Lines Matching refs:ok
112 static int null_callback(int ok, X509_STORE_CTX *e);
142 static int null_callback(int ok, X509_STORE_CTX *e)
144 return ok;
193 int depth, i, ok = 0;
222 ok = -1;
232 ok = -1;
255 ok = ctx->get_issuer(&xtmp, ctx, x);
256 if (ok < 0)
262 if (ok > 0) {
274 ok = -1;
313 ok = ctx->get_issuer(&xtmp, ctx, x);
314 if ((ok <= 0) || X509_cmp(x, xtmp)) {
318 if (ok == 1)
321 ok = cb(0, ctx);
322 if (!ok)
353 ok = ctx->get_issuer(&xtmp, ctx, x);
355 if (ok < 0)
357 if (ok == 0)
363 ok = -1;
372 ok = 0;
388 ok = ctx->get_issuer(&xtmp, ctx, xtmp2);
389 if (ok < 0)
392 if (ok > 0) {
439 ok = cb(0, ctx);
440 if (!ok)
445 ok = check_chain_extensions(ctx);
447 if (!ok)
452 ok = check_name_constraints(ctx);
454 if (!ok)
457 ok = check_id(ctx);
459 if (!ok)
470 ok = ctx->check_revocation(ctx);
471 if (!ok)
479 ok = cb(0, ctx);
480 if (!ok)
486 ok = ctx->verify(ctx);
488 ok = internal_verify(ctx);
489 if (!ok)
494 ok = v3_asid_validate_path(ctx);
495 if (!ok)
497 ok = v3_addr_validate_path(ctx);
498 if (!ok)
504 ok = ctx->check_policy(ctx);
505 if (!ok)
510 if (ok > 0)
511 ok = 0;
518 return ok;
577 int i, ok = 0, must_be_ca, plen = 0;
621 ok = cb(0, ctx);
622 if (!ok)
629 ok = cb(0, ctx);
630 if (!ok)
663 ok = cb(0, ctx);
664 if (!ok)
675 ok = cb(0, ctx);
676 if (!ok)
687 ok = cb(0, ctx);
688 if (!ok)
704 ok = cb(0, ctx);
705 if (!ok)
713 ok = 1;
715 return ok;
800 int i, ok;
807 ok = X509_check_trust(x, ctx->param->trust, 0);
809 if (ok == X509_TRUST_TRUSTED)
815 if (ok == X509_TRUST_REJECTED) {
819 ok = cb(0, ctx);
820 if (!ok)
851 int i, last, ok;
864 ok = check_cert(ctx);
865 if (!ok)
866 return ok;
875 int ok, cnum;
887 ok = ctx->get_crl(ctx, &crl, x);
889 ok = get_crl_delta(ctx, &crl, &dcrl, x);
893 if (!ok) {
895 ok = ctx->verify_cb(0, ctx);
899 ok = ctx->check_crl(ctx, crl);
900 if (!ok)
904 ok = ctx->check_crl(ctx, dcrl);
905 if (!ok)
907 ok = ctx->cert_crl(ctx, dcrl, x);
908 if (!ok)
911 ok = 1;
914 if (ok != 2) {
915 ok = ctx->cert_crl(ctx, crl, x);
916 if (!ok)
930 ok = ctx->verify_cb(0, ctx);
939 return ok;
1441 int ok;
1449 ok = get_crl_sk(ctx, &crl, &dcrl,
1452 if (ok)
1487 int ok = 0, chnum, cnum;
1505 ok = ctx->verify_cb(0, ctx);
1506 if (!ok)
1520 ok = ctx->verify_cb(0, ctx);
1521 if (!ok)
1527 ok = ctx->verify_cb(0, ctx);
1528 if (!ok)
1535 ok = ctx->verify_cb(0, ctx);
1536 if (!ok)
1543 ok = ctx->verify_cb(0, ctx);
1544 if (!ok)
1551 ok = check_crl_time(ctx, crl, 1);
1552 if (!ok)
1561 ok = ctx->verify_cb(0, ctx);
1562 if (!ok)
1569 ok = ctx->verify_cb(0, ctx);
1570 if (!ok)
1576 ok = ctx->verify_cb(0, ctx);
1577 if (!ok)
1583 ok = 1;
1587 return ok;
1593 int ok;
1604 ok = ctx->verify_cb(0, ctx);
1605 if (!ok)
1616 ok = ctx->verify_cb(0, ctx);
1617 if (!ok)
1714 int ok = 0, n;
1736 ok = cb(0, ctx);
1760 ok = (*cb) (0, ctx);
1761 if (!ok)
1766 ok = (*cb) (0, ctx);
1767 if (!ok) {
1779 ok = check_cert_time(ctx, xs);
1780 if (!ok)
1786 ok = (*cb) (1, ctx);
1787 if (!ok)
1796 ok = 1;
1798 return ok;