Lines Matching refs:flags

18 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags);
19 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags);
20 static int trust_compat(X509_TRUST *trust, X509 *x, int flags);
22 static int obj_trust(int id, X509 *x, int flags);
23 static int (*default_trust) (int id, X509 *x, int flags) = obj_trust;
65 int X509_check_trust(X509 *x, int id, int flags)
73 flags | X509_TRUST_DO_SS_COMPAT);
76 return default_trust(id, x, flags);
78 return pt->check_trust(pt, x, flags);
123 int X509_TRUST_add(int id, int flags, int (*ck) (X509_TRUST *, X509 *, int),
131 flags &= ~X509_TRUST_DYNAMIC;
133 flags |= X509_TRUST_DYNAMIC_NAME;
142 trtmp->flags = X509_TRUST_DYNAMIC;
147 if (trtmp->flags & X509_TRUST_DYNAMIC_NAME)
155 trtmp->flags &= X509_TRUST_DYNAMIC;
156 /* Set all other flags */
157 trtmp->flags |= flags;
189 if (p->flags & X509_TRUST_DYNAMIC) {
190 if (p->flags & X509_TRUST_DYNAMIC_NAME)
204 return xp->flags;
217 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags)
225 flags |= X509_TRUST_DO_SS_COMPAT | X509_TRUST_OK_ANY_EKU;
226 return obj_trust(trust->arg1, x, flags);
229 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags)
236 flags &= ~(X509_TRUST_DO_SS_COMPAT | X509_TRUST_OK_ANY_EKU);
237 return obj_trust(trust->arg1, x, flags);
240 static int trust_compat(X509_TRUST *trust, X509 *x, int flags)
245 if ((flags & X509_TRUST_NO_SS_COMPAT) == 0 && (x->ex_flags & EXFLAG_SS))
251 static int obj_trust(int id, X509 *x, int flags)
262 (flags & X509_TRUST_OK_ANY_EKU)))
273 (flags & X509_TRUST_OK_ANY_EKU)))
293 if ((flags & X509_TRUST_DO_SS_COMPAT) == 0)
299 return trust_compat(NULL, x, flags);