Lines Matching defs:num_untrusted

53 static int check_trust(X509_STORE_CTX *ctx, int num_untrusted);
289 ctx->num_untrusted = 1;
423 if (depth >= ctx->num_untrusted && purpose == ctx->param->purpose)
810 static int check_trust(X509_STORE_CTX *ctx, int num_untrusted)
823 if (DANETLS_HAS_TA(dane) && num_untrusted > 0 && num_untrusted < num) {
824 trust = check_dane_issuer(ctx, num_untrusted);
830 * Check trusted certificates in chain at depth num_untrusted and up.
831 * Note, that depths 0..num_untrusted-1 may also contain trusted
835 for (i = num_untrusted; i < num; i++) {
849 if (num_untrusted < num) {
855 if (num_untrusted == num
882 ctx->num_untrusted = 0;
900 dane->pdpth = num_untrusted;
2336 ctx->num_untrusted = 0;
2623 return ctx->num_untrusted;
2708 if (depth >= ctx->num_untrusted)
2848 ctx->num_untrusted = depth - 1;
2859 int num = ctx->num_untrusted;
2883 for (; num > ctx->num_untrusted; --num)
3005 if (!ossl_assert(num == 1 && ctx->num_untrusted == num))
3090 * and reset ctx->num_untrusted to the reduced count of
3094 * ctx->num_untrusted.
3096 * Note, like ctx->num_untrusted, alt_untrusted is a count of
3141 ctx->num_untrusted = num;
3144 dane->mdpth >= ctx->num_untrusted) {
3150 dane->pdpth >= ctx->num_untrusted)
3178 ctx->num_untrusted = --num;
3194 * certificate with ctx->num_untrusted <= num.
3197 if (!ossl_assert(ctx->num_untrusted <= num))
3220 ctx->num_untrusted < 2)
3224 alt_untrusted = ctx->num_untrusted - 1;
3233 if (!ossl_assert(num == ctx->num_untrusted))
3256 ++ctx->num_untrusted;
3259 trust = check_dane_issuer(ctx, ctx->num_untrusted - 1);
3277 if (trust == X509_TRUST_UNTRUSTED && num == ctx->num_untrusted)
3311 ctx->num_untrusted < num
3353 ctx->num_untrusted = 1;