Lines Matching full:trust
68 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags);
69 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags);
70 static int trust_compat(X509_TRUST *trust, X509 *x, int flags);
75 /* WARNING: the following table should be kept in order of trust
76 * and without any gaps so we can just subtract the minimum trust
100 return (*a)->trust - (*b)->trust;
103 int (*X509_TRUST_set_default(int (*trust)(int , X509 *, int)))(int, X509 *, int)
107 default_trust = trust;
142 tmp.trust = id;
149 int X509_TRUST_set(int *t, int trust)
151 if(X509_TRUST_get_by_id(trust) == -1) {
155 *t = trust;
166 /* This will always be set for application modified trust entries */
191 trtmp->trust = id;
241 return xp->trust;
244 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags)
246 if(x->aux && (x->aux->trust || x->aux->reject))
247 return obj_trust(trust->arg1, x, flags);
248 /* we don't have any trust settings: for compatibility
251 return trust_compat(trust, x, flags);
254 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags)
256 if(x->aux) return obj_trust(trust->arg1, x, flags);
260 static int trust_compat(X509_TRUST *trust, X509 *x, int flags)
280 if(ax->trust) {
281 for(i = 0; i < sk_ASN1_OBJECT_num(ax->trust); i++) {
282 obj = sk_ASN1_OBJECT_value(ax->trust, i);