diff options
Diffstat (limited to 'src/crypto/x509/x509_trs.c')
-rw-r--r-- | src/crypto/x509/x509_trs.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/crypto/x509/x509_trs.c b/src/crypto/x509/x509_trs.c index c95d6fca..d21548d1 100644 --- a/src/crypto/x509/x509_trs.c +++ b/src/crypto/x509/x509_trs.c @@ -71,7 +71,6 @@ static int trust_1oid(X509_TRUST *trust, X509 *x, int flags); static int trust_compat(X509_TRUST *trust, X509 *x, int flags); static int obj_trust(int id, X509 *x, int flags); -static int (*default_trust) (int id, X509 *x, int flags) = obj_trust; /* * WARNING: the following table should be kept in order of trust and without @@ -106,14 +105,6 @@ static int tr_cmp(const X509_TRUST **a, const X509_TRUST **b) return (*a)->trust - (*b)->trust; } -int (*X509_TRUST_set_default(int (*trust) (int, X509 *, int))) (int, X509 *, - int) { - int (*oldtrust) (int, X509 *, int); - oldtrust = default_trust; - default_trust = trust; - return oldtrust; -} - int X509_check_trust(X509 *x, int id, int flags) { X509_TRUST *pt; @@ -130,7 +121,7 @@ int X509_check_trust(X509 *x, int id, int flags) } idx = X509_TRUST_get_by_id(id); if (idx == -1) - return default_trust(id, x, flags); + return obj_trust(id, x, flags); pt = X509_TRUST_get0(idx); return pt->check_trust(pt, x, flags); } |