Lines Matching defs:trust
197 int trust = X509_TRUST_UNTRUSTED;
327 * version so we get any trust settings.
370 if ((trust = check_trust(ctx)) == X509_TRUST_REJECTED) {
383 if (trust != X509_TRUST_TRUSTED
420 if (trust != X509_TRUST_TRUSTED && !bad_chain) {
731 * including trust anchor. Trust anchor not strictly speaking needed
807 ok = X509_check_trust(x, ctx->param->trust, 0);
1302 * strict and states that the two paths must end in the same trust anchor,
2191 int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust)
2193 return X509_STORE_CTX_purpose_inherit(ctx, 0, 0, trust);
2197 * This function is used to set the X509_STORE_CTX purpose and trust values.
2198 * This is intended to be used when another structure has its own trust and
2201 * be used to set the trust value. An example of this is SSL use: an SSL
2202 * structure will have its own purpose and trust settings which the
2208 int purpose, int trust)
2224 if (ptmp->trust == X509_TRUST_DEFAULT) {
2233 /* If trust not set then get from purpose default */
2234 if (!trust)
2235 trust = ptmp->trust;
2237 if (trust) {
2238 idx = X509_TRUST_get_by_id(trust);
2248 if (trust && !ctx->param->trust)
2249 ctx->param->trust = trust;