72 static int obj_trust(
int id,
X509 *x,
int flags);
73 static int (*default_trust)(
int id,
X509 *x,
int flags) = obj_trust;
91 #define X509_TRUST_COUNT (sizeof(trstandard)/sizeof(X509_TRUST))
100 return (*a)->trust - (*b)->trust;
105 int (*oldtrust)(int , X509 *, int);
106 oldtrust = default_trust;
107 default_trust = trust;
116 if(
id == -1)
return 1;
118 if(idx == -1)
return default_trust(
id, x, flags);
131 if(idx < 0)
return NULL;
143 if(!trtable)
return -1;
145 if(idx == -1)
return -1;
160 char *name,
int arg1,
void *arg2)
244 static int trust_1oidany(
X509_TRUST *trust, X509 *x,
int flags)
246 if(x->
aux && (x->
aux->trust || x->
aux->reject))
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)