diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-02-14 15:07:01 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-02-14 15:12:53 +0000 |
commit | b07e4f2f46fc286c306353d5e362cbc22c8547fb (patch) | |
tree | df8bba3c16bf22973dd08ba42ce4b1b8db7eab84 /crypto/x509 | |
parent | ced6dc5cefca57b08e077951a9710c33b709e99e (diff) |
Include TA in checks/callback with partial chains.
When a chain is complete and ends in a trusted root checks are also
performed on the TA and the callback notified with ok==1. For
consistency do the same for chains where the TA is not self signed.
(cherry picked from commit 385b3486661628f3f806205752bf968b8114b347)
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/x509_vfy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 07cd09f69d..5f91b01666 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -1735,7 +1735,7 @@ static int internal_verify(X509_STORE_CTX *ctx) xs=xi; else { - if (ctx->param->flags & X509_V_FLAG_PARTIAL_CHAIN && n == 0) + if (ctx->param->flags & X509_V_FLAG_PARTIAL_CHAIN) { xs = xi; goto check_cert; |