Lines Matching refs:trust
519 tr_ok = X509_check_trust(x, ctx->param->trust, X509_TRUST_NO_SS_COMPAT); in check_purpose()
915 int trust; in check_trust() local
922 trust = check_dane_issuer(ctx, num_untrusted); in check_trust()
923 if (trust != X509_TRUST_UNTRUSTED) in check_trust()
924 return trust; in check_trust()
935 trust = X509_check_trust(x, ctx->param->trust, 0); in check_trust()
937 if (trust == X509_TRUST_TRUSTED) in check_trust()
939 if (trust == X509_TRUST_REJECTED) in check_trust()
971 trust = X509_check_trust(mx, ctx->param->trust, 0); in check_trust()
972 if (trust == X509_TRUST_REJECTED) { in check_trust()
2349 int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust) in X509_STORE_CTX_set_trust() argument
2355 return X509_STORE_CTX_purpose_inherit(ctx, 0, 0, trust); in X509_STORE_CTX_set_trust()
2369 int purpose, int trust) in X509_STORE_CTX_purpose_inherit() argument
2392 if (ptmp->trust == X509_TRUST_DEFAULT) { in X509_STORE_CTX_purpose_inherit()
2401 if (trust == 0) in X509_STORE_CTX_purpose_inherit()
2402 trust = ptmp->trust; in X509_STORE_CTX_purpose_inherit()
2404 if (trust != 0) { in X509_STORE_CTX_purpose_inherit()
2405 idx = X509_TRUST_get_by_id(trust); in X509_STORE_CTX_purpose_inherit()
2414 if (ctx->param->trust == 0 && trust != 0) in X509_STORE_CTX_purpose_inherit()
2415 ctx->param->trust = trust; in X509_STORE_CTX_purpose_inherit()
2577 if (ctx->param->trust == X509_TRUST_DEFAULT) { in X509_STORE_CTX_init()
2582 ctx->param->trust = X509_PURPOSE_get_trust(xp); in X509_STORE_CTX_init()
3247 int trust = X509_TRUST_UNTRUSTED; in build_chain() local
3362 trust = -1; in build_chain()
3457 trust = check_trust(ctx, num); in build_chain()
3458 if (trust != X509_TRUST_UNTRUSTED) in build_chain()
3517 trust = check_dane_issuer(ctx, ctx->num_untrusted - 1); in build_chain()
3518 if (trust == X509_TRUST_TRUSTED || trust == X509_TRUST_REJECTED) in build_chain()
3524 if (trust < 0) /* internal error */ in build_chain()
3525 return trust; in build_chain()
3533 if (trust == X509_TRUST_UNTRUSTED && DANETLS_HAS_DANE_TA(dane)) in build_chain()
3534 trust = check_dane_pkeys(ctx); in build_chain()
3535 if (trust == X509_TRUST_UNTRUSTED && num == ctx->num_untrusted) in build_chain()
3536 trust = check_trust(ctx, num); in build_chain()
3539 switch (trust) { in build_chain()