Lines Matching refs: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
99 return (*a)->trust - (*b)->trust;
102 int (*X509_TRUST_set_default(int (*trust)(int , X509 *, int)))(int, X509 *, int)
106 default_trust = trust;
141 tmp.trust = id;
148 int X509_TRUST_set(int *t, int trust)
150 if(X509_TRUST_get_by_id(trust) == -1) {
154 *t = trust;
165 /* This will always be set for application modified trust entries */
190 trtmp->trust = id;
240 return xp->trust;
243 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags)
245 if(x->aux && (x->aux->trust || x->aux->reject))
246 return obj_trust(trust->arg1, x, flags);
247 /* we don't have any trust settings: for compatibility
250 return trust_compat(trust, x, flags);
253 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags)
255 if(x->aux) return obj_trust(trust->arg1, x, flags);
259 static int trust_compat(X509_TRUST *trust, X509 *x, int flags)
279 if(ax->trust) {
280 for(i = 0; i < sk_ASN1_OBJECT_num(ax->trust); i++) {
281 obj = sk_ASN1_OBJECT_value(ax->trust, i);