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;
66 int X509_check_trust(X509 *x, int id, int flags) in X509_check_trust() argument
74 flags | X509_TRUST_DO_SS_COMPAT); in X509_check_trust()
77 return default_trust(id, x, flags); in X509_check_trust()
79 return pt->check_trust(pt, x, flags); in X509_check_trust()
126 int X509_TRUST_add(int id, int flags, int (*ck) (X509_TRUST *, X509 *, int), in X509_TRUST_add() argument
134 flags &= ~X509_TRUST_DYNAMIC; in X509_TRUST_add()
136 flags |= X509_TRUST_DYNAMIC_NAME; in X509_TRUST_add()
143 trtmp->flags = X509_TRUST_DYNAMIC; in X509_TRUST_add()
148 if (trtmp->flags & X509_TRUST_DYNAMIC_NAME) in X509_TRUST_add()
154 trtmp->flags &= X509_TRUST_DYNAMIC; in X509_TRUST_add()
156 trtmp->flags |= flags; in X509_TRUST_add()
188 if (p->flags & X509_TRUST_DYNAMIC) { in trtable_free()
189 if (p->flags & X509_TRUST_DYNAMIC_NAME) in trtable_free()
203 return xp->flags; in X509_TRUST_get_flags()
216 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags) in trust_1oidany() argument
224 flags |= X509_TRUST_DO_SS_COMPAT | X509_TRUST_OK_ANY_EKU; in trust_1oidany()
225 return obj_trust(trust->arg1, x, flags); in trust_1oidany()
228 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags) in trust_1oid() argument
235 flags &= ~(X509_TRUST_DO_SS_COMPAT | X509_TRUST_OK_ANY_EKU); in trust_1oid()
236 return obj_trust(trust->arg1, x, flags); in trust_1oid()
239 static int trust_compat(X509_TRUST *trust, X509 *x, int flags) in trust_compat() argument
244 if ((flags & X509_TRUST_NO_SS_COMPAT) == 0 && (x->ex_flags & EXFLAG_SS)) in trust_compat()
250 static int obj_trust(int id, X509 *x, int flags) in obj_trust() argument
261 (flags & X509_TRUST_OK_ANY_EKU))) in obj_trust()
272 (flags & X509_TRUST_OK_ANY_EKU))) in obj_trust()
292 if ((flags & X509_TRUST_DO_SS_COMPAT) == 0) in obj_trust()
298 return trust_compat(NULL, x, flags); in obj_trust()