Lines Matching refs:trust
486 tr_ok = X509_check_trust(x, ctx->param->trust, X509_TRUST_NO_SS_COMPAT); in check_purpose()
882 int trust; in check_trust() local
889 trust = check_dane_issuer(ctx, num_untrusted); in check_trust()
890 if (trust != X509_TRUST_UNTRUSTED) in check_trust()
891 return trust; in check_trust()
902 trust = X509_check_trust(x, ctx->param->trust, 0); in check_trust()
904 if (trust == X509_TRUST_TRUSTED) in check_trust()
906 if (trust == X509_TRUST_REJECTED) in check_trust()
938 trust = X509_check_trust(mx, ctx->param->trust, 0); in check_trust()
939 if (trust == X509_TRUST_REJECTED) { in check_trust()
2316 int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust) in X509_STORE_CTX_set_trust() argument
2322 return X509_STORE_CTX_purpose_inherit(ctx, 0, 0, trust); in X509_STORE_CTX_set_trust()
2336 int purpose, int trust) in X509_STORE_CTX_purpose_inherit() argument
2359 if (ptmp->trust == X509_TRUST_DEFAULT) { in X509_STORE_CTX_purpose_inherit()
2368 if (trust == 0) in X509_STORE_CTX_purpose_inherit()
2369 trust = ptmp->trust; in X509_STORE_CTX_purpose_inherit()
2371 if (trust != 0) { in X509_STORE_CTX_purpose_inherit()
2372 idx = X509_TRUST_get_by_id(trust); in X509_STORE_CTX_purpose_inherit()
2381 if (ctx->param->trust == 0 && trust != 0) in X509_STORE_CTX_purpose_inherit()
2382 ctx->param->trust = trust; in X509_STORE_CTX_purpose_inherit()
2544 if (ctx->param->trust == X509_TRUST_DEFAULT) { in X509_STORE_CTX_init()
2549 ctx->param->trust = X509_PURPOSE_get_trust(xp); in X509_STORE_CTX_init()
3214 int trust = X509_TRUST_UNTRUSTED; in build_chain() local
3329 trust = -1; in build_chain()
3424 trust = check_trust(ctx, num); in build_chain()
3425 if (trust != X509_TRUST_UNTRUSTED) in build_chain()
3484 trust = check_dane_issuer(ctx, ctx->num_untrusted - 1); in build_chain()
3485 if (trust == X509_TRUST_TRUSTED || trust == X509_TRUST_REJECTED) in build_chain()
3491 if (trust < 0) /* internal error */ in build_chain()
3492 return trust; in build_chain()
3500 if (trust == X509_TRUST_UNTRUSTED && DANETLS_HAS_DANE_TA(dane)) in build_chain()
3501 trust = check_dane_pkeys(ctx); in build_chain()
3502 if (trust == X509_TRUST_UNTRUSTED && num == ctx->num_untrusted) in build_chain()
3503 trust = check_trust(ctx, num); in build_chain()
3506 switch (trust) { in build_chain()