Lines Matching defs:trust
67 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags);
68 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags);
69 static int trust_compat(X509_TRUST *trust, X509 *x, int flags);
75 * WARNING: the following table should be kept in order of trust and without
76 * any gaps so we can just subtract the minimum trust value to get an index
105 return (*a)->trust - (*b)->trust;
108 int (*X509_TRUST_set_default(int (*trust) (int, X509 *, int))) (int, X509 *,
112 default_trust = trust;
159 tmp.trust = id;
168 int X509_TRUST_set(int *t, int trust)
170 if (X509_TRUST_get_by_id(trust) == -1) {
174 *t = trust;
187 /* This will always be set for application modified trust entries */
214 trtmp->trust = id;
265 return xp->trust;
268 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags)
270 if (x->aux && (x->aux->trust || x->aux->reject))
271 return obj_trust(trust->arg1, x, flags);
273 * we don't have any trust settings: for compatibility we return trusted
276 return trust_compat(trust, x, flags);
279 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags)
282 return obj_trust(trust->arg1, x, flags);
286 static int trust_compat(X509_TRUST *trust, X509 *x, int flags)
310 if (ax->trust) {
311 for (i = 0; i < sk_ASN1_OBJECT_num(ax->trust); i++) {
312 obj = sk_ASN1_OBJECT_value(ax->trust, i);