Home | History | Annotate | Download | only in x509

Lines Matching defs:ok

115 static int null_callback(int ok, X509_STORE_CTX *e);
144 static int null_callback(int ok, X509_STORE_CTX *e)
146 return ok;
195 int depth, i, ok = 0;
279 ok = ctx->get_issuer(&xtmp, ctx, x);
280 if (ok < 0) {
288 if (ok > 0) {
301 ok = 0;
340 ok = ctx->get_issuer(&xtmp, ctx, x);
341 if ((ok <= 0) || X509_cmp(x, xtmp)) {
345 if (ok == 1)
348 ok = cb(0, ctx);
349 if (!ok)
380 ok = ctx->get_issuer(&xtmp, ctx, x);
382 if (ok < 0) {
386 if (ok == 0)
393 ok = 0;
404 ok = 0;
419 ok = ctx->get_issuer(&xtmp, ctx, xtmp2);
420 if (ok < 0)
423 if (ok > 0) {
470 ok = cb(0, ctx);
471 if (!ok)
476 ok = check_chain_extensions(ctx);
478 if (!ok)
483 ok = check_name_constraints(ctx);
485 if (!ok)
488 ok = check_id(ctx);
490 if (!ok)
498 ok = ctx->check_revocation(ctx);
499 if (!ok)
507 ok = cb(0, ctx);
508 if (!ok)
514 ok = ctx->verify(ctx);
516 ok = internal_verify(ctx);
517 if (!ok)
522 ok = ctx->check_policy(ctx);
531 if (ok <= 0 && ctx->error == X509_V_OK)
533 return ok;
589 int i, ok = 0, must_be_ca, plen = 0;
626 ok = cb(0, ctx);
627 if (!ok)
634 ok = cb(0, ctx);
635 if (!ok)
668 ok = cb(0, ctx);
669 if (!ok)
680 ok = cb(0, ctx);
681 if (!ok)
692 ok = cb(0, ctx);
693 if (!ok)
709 ok = cb(0, ctx);
710 if (!ok)
718 ok = 1;
720 return ok;
813 int ok;
820 ok = X509_check_trust(x, ctx->param->trust, 0);
822 if (ok == X509_TRUST_TRUSTED)
828 if (ok == X509_TRUST_REJECTED) {
832 ok = cb(0, ctx);
833 if (!ok)
864 int i, last, ok;
877 ok = check_cert(ctx);
878 if (!ok)
879 return ok;
888 int ok = 0, cnum;
900 ok = ctx->get_crl(ctx, &crl, x);
902 ok = get_crl_delta(ctx, &crl, &dcrl, x);
906 if (!ok) {
908 ok = ctx->verify_cb(0, ctx);
912 ok = ctx->check_crl(ctx, crl);
913 if (!ok)
917 ok = ctx->check_crl(ctx, dcrl);
918 if (!ok)
920 ok = ctx->cert_crl(ctx, dcrl, x);
921 if (!ok)
924 ok = 1;
927 if (ok != 2) {
928 ok = ctx->cert_crl(ctx, crl, x);
929 if (!ok)
943 ok = ctx->verify_cb(0, ctx);
952 return ok;
1477 int ok;
1485 ok = get_crl_sk(ctx, &crl, &dcrl,
1488 if (ok)
1523 int ok = 0, chnum, cnum;
1541 ok = ctx->verify_cb(0, ctx);
1542 if (!ok)
1556 ok = ctx->verify_cb(0, ctx);
1557 if (!ok)
1563 ok = ctx->verify_cb(0, ctx);
1564 if (!ok)
1571 ok = ctx->verify_cb(0, ctx);
1572 if (!ok)
1579 ok = ctx->verify_cb(0, ctx);
1580 if (!ok)
1587 ok = check_crl_time(ctx, crl, 1);
1588 if (!ok)
1597 ok = ctx->verify_cb(0, ctx);
1598 if (!ok)
1605 ok = ctx->verify_cb(0, ctx);
1606 if (!ok)
1612 ok = ctx->verify_cb(0, ctx);
1613 if (!ok)
1619 ok = 1;
1623 return ok;
1629 int ok;
1640 ok = ctx->verify_cb(0, ctx);
1641 if (!ok)
1652 ok = ctx->verify_cb(0, ctx);
1653 if (!ok)
1756 int ok = 0, n;
1778 ok = cb(0, ctx);
1800 ok = (*cb) (0, ctx);
1801 if (!ok)
1806 ok = (*cb) (0, ctx);
1807 if (!ok) {
1817 ok = check_cert_time(ctx, xs);
1818 if (!ok)
1824 ok = (*cb) (1, ctx);
1825 if (!ok)
1834 ok = 1;
1836 return ok;