Lines Matching refs:flags
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);
72 static int obj_trust(int id, X509 *x, int flags);
73 static int (*default_trust)(int id, X509 *x, int flags) = obj_trust;
112 int X509_check_trust(X509 *x, int id, int flags)
118 if(idx == -1) return default_trust(id, x, flags);
120 return pt->check_trust(pt, x, flags);
159 int X509_TRUST_add(int id, int flags, int (*ck)(X509_TRUST *, X509 *, int),
165 flags &= ~X509_TRUST_DYNAMIC;
167 flags |= X509_TRUST_DYNAMIC_NAME;
176 trtmp->flags = X509_TRUST_DYNAMIC;
180 if(trtmp->flags & X509_TRUST_DYNAMIC_NAME) OPENSSL_free(trtmp->name);
187 trtmp->flags &= X509_TRUST_DYNAMIC;
188 /* Set all other flags */
189 trtmp->flags |= flags;
213 if (p->flags & X509_TRUST_DYNAMIC)
215 if (p->flags & X509_TRUST_DYNAMIC_NAME)
231 return xp->flags;
244 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags)
247 return obj_trust(trust->arg1, x, flags);
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)
267 static int obj_trust(int id, X509 *x, int flags)