Home | History | Annotate | Download | only in x509

Lines Matching refs:trust

66 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags);
67 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags);
68 static int trust_compat(X509_TRUST *trust, X509 *x, int flags);
74 * WARNING: the following table should be kept in order of trust and without
75 * any gaps so we can just subtract the minimum trust value to get an index
103 return (*a)->trust - (*b)->trust;
106 int (*X509_TRUST_set_default(int (*trust) (int, X509 *, int))) (int, X509 *,
110 default_trust = trust;
158 tmp.trust = id;
167 int X509_TRUST_set(int *t, int trust)
169 if (X509_TRUST_get_by_id(trust) == -1) {
173 *t = trust;
188 /* This will always be set for application modified trust entries */
220 trtmp->trust = id;
273 return xp->trust;
276 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags)
278 if (x->aux && (x->aux->trust || x->aux->reject))
279 return obj_trust(trust->arg1, x, flags);
281 * we don't have any trust settings: for compatibility we return trusted
284 return trust_compat(trust, x, flags);
287 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags)
290 return obj_trust(trust->arg1, x, flags);
294 static int trust_compat(X509_TRUST *trust, X509 *x, int flags)
318 if (ax->trust) {
319 for (i = 0; i < sk_ASN1_OBJECT_num(ax->trust); i++) {
320 obj = sk_ASN1_OBJECT_value(ax->trust, i);