diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_trs.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_trs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_trs.c b/src/lib/libcrypto/x509/x509_trs.c index a7b1543461..86b3b79dcc 100644 --- a/src/lib/libcrypto/x509/x509_trs.c +++ b/src/lib/libcrypto/x509/x509_trs.c | |||
@@ -228,7 +228,8 @@ int X509_TRUST_get_trust(X509_TRUST *xp) | |||
228 | 228 | ||
229 | static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags) | 229 | static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags) |
230 | { | 230 | { |
231 | if(x->aux) return obj_trust(trust->arg1, x, flags); | 231 | if(x->aux && (x->aux->trust || x->aux->reject)) |
232 | return obj_trust(trust->arg1, x, flags); | ||
232 | /* we don't have any trust settings: for compatibility | 233 | /* we don't have any trust settings: for compatibility |
233 | * we return trusted if it is self signed | 234 | * we return trusted if it is self signed |
234 | */ | 235 | */ |