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;
158 int depth,i,ok=0;
252 ok = ctx->get_issuer(&xtmp, ctx, x);
253 if ((ok <= 0) || X509_cmp(x, xtmp))
258 if (ok == 1) X509_free(xtmp);
260 ok=cb(0,ctx);
261 if (!ok) goto end;
293 ok = ctx->get_issuer(&xtmp, ctx, x);
295 if (ok < 0) return ok;
296 if (ok == 0) break;
334 ok=cb(0,ctx);
335 if (!ok) goto end;
339 ok = check_chain_extensions(ctx);
341 if (!ok) goto end;
345 ok = check_name_constraints(ctx);
347 if (!ok) goto end;
349 /* The chain extensions are OK: check trust */
351 if (param->trust > 0) ok = check_trust(ctx);
353 if (!ok) goto end;
362 ok = ctx->check_revocation(ctx);
363 if(!ok) goto end;
367 ok=ctx->verify(ctx);
369 ok=internal_verify(ctx);
370 if(!ok) goto end;
374 ok = v3_asid_validate_path(ctx);
375 if (!ok) goto end;
376 ok = v3_addr_validate_path(ctx);
377 if (!ok) goto end;
382 ok = ctx->check_policy(ctx);
383 if(!ok) goto end;
391 return ok;
454 int i, ok=0, must_be_ca, plen = 0;
500 ok=cb(0,ctx);
501 if (!ok) goto end;
508 ok=cb(0,ctx);
509 if (!ok) goto end;
549 ok=cb(0,ctx);
550 if (!ok) goto end;
562 ok=cb(0,ctx);
563 if (!ok) goto end;
574 ok=cb(0,ctx);
575 if (!ok) goto end;
592 ok=cb(0,ctx);
593 if (!ok) goto end;
601 ok = 1;
603 return ok;
648 int i, ok;
655 ok = X509_check_trust(x, ctx->param->trust, 0);
656 if (ok == X509_TRUST_TRUSTED)
660 if (ok == X509_TRUST_REJECTED)
664 ok = cb(0, ctx);
665 return ok;
671 int i, last, ok;
686 ok = check_cert(ctx);
687 if (!ok) return ok;
696 int ok, cnum;
707 ok = ctx->get_crl(ctx, &crl, x);
709 ok = get_crl_delta(ctx, &crl, &dcrl, x);
713 if(!ok)
716 ok = ctx->verify_cb(0, ctx);
720 ok = ctx->check_crl(ctx, crl);
721 if (!ok)
726 ok = ctx->check_crl(ctx, dcrl);
727 if (!ok)
729 ok = ctx->cert_crl(ctx, dcrl, x);
730 if (!ok)
734 ok = 1;
737 if (ok != 2)
739 ok = ctx->cert_crl(ctx, crl, x);
740 if (!ok)
754 return ok;
1295 ok;
1303 ok = get_crl_sk(ctx, &crl, &dcrl,
1306 if (ok)
1342 int ok = 0, chnum, cnum;
1361 ok = ctx->verify_cb(0, ctx);
1362 if(!ok) goto err;
1378 ok = ctx->verify_cb(0, ctx);
1379 if(!ok) goto err;
1385 ok = ctx->verify_cb(0, ctx);
1386 if(!ok) goto err;
1394 ok = ctx->verify_cb(0, ctx);
1395 if(!ok) goto err;
1402 ok = ctx->verify_cb(0, ctx);
1403 if(!ok) goto err;
1411 ok = check_crl_time(ctx, crl, 1);
1412 if (!ok)
1422 ok = ctx->verify_cb(0, ctx);
1423 if (!ok) goto err;
1431 ok = ctx->verify_cb(0, ctx);
1432 if (!ok) goto err;
1437 ok = 1;
1441 return ok;
1447 int ok;
1459 ok = ctx->verify_cb(0, ctx);
1460 if(!ok)
1471 ok = ctx->verify_cb(0, ctx);
1472 if (!ok)
1578 int ok=0,n;
1598 ok=cb(0,ctx);
1624 ok=(*cb)(0,ctx);
1625 if (!ok) goto end;
1631 ok=(*cb)(0,ctx);
1632 if (!ok)
1644 ok = check_cert_time(ctx, xs);
1645 if (!ok)
1651 ok=(*cb)(1,ctx);
1652 if (!ok) goto end;
1661 ok=1;
1663 return ok;