summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/x509/x509_trs.c
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-07-19 19:59:37 +0000
committerkris <kris@FreeBSD.org>2001-07-19 19:59:37 +0000
commit3b19ada1e8e5f87b844d2cc1e72907cfb7774fb6 (patch)
tree97ecedd5f90991a7abe96b7ca0cb51fa579341b5 /crypto/openssl/crypto/x509/x509_trs.c
parent12896e829e9474d92c70a1528cc64270e9dc08ad (diff)
downloadFreeBSD-src-3b19ada1e8e5f87b844d2cc1e72907cfb7774fb6.zip
FreeBSD-src-3b19ada1e8e5f87b844d2cc1e72907cfb7774fb6.tar.gz
Initial import of OpenSSL 0.9.6b
Diffstat (limited to 'crypto/openssl/crypto/x509/x509_trs.c')
-rw-r--r--crypto/openssl/crypto/x509/x509_trs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/x509/x509_trs.c b/crypto/openssl/crypto/x509/x509_trs.c
index a7b1543..86b3b79 100644
--- a/crypto/openssl/crypto/x509/x509_trs.c
+++ b/crypto/openssl/crypto/x509/x509_trs.c
@@ -228,7 +228,8 @@ int X509_TRUST_get_trust(X509_TRUST *xp)
static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags)
{
- if(x->aux) return obj_trust(trust->arg1, x, flags);
+ if(x->aux && (x->aux->trust || x->aux->reject))
+ return obj_trust(trust->arg1, x, flags);
/* we don't have any trust settings: for compatibility
* we return trusted if it is self signed
*/
OpenPOWER on IntegriCloud