diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-09-23 03:49:26 -0400 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-09-23 04:25:22 -0400 |
commit | 07d62412cf2891883d1a7d79e6f50e282793dd49 (patch) | |
tree | 73ab7b1a50e9e7060f8a4614e391fbd09c20f326 /src | |
parent | 0dd87be2031855367eb1550538c1d62226137c02 (diff) | |
download | xmlsec1-07d62412cf2891883d1a7d79e6f50e282793dd49.tar.gz xmlsec1-07d62412cf2891883d1a7d79e6f50e282793dd49.tar.bz2 xmlsec1-07d62412cf2891883d1a7d79e6f50e282793dd49.zip |
tizen 2.1 patch
Change-Id: I567ca343602cf4230d21cd126b507ebb4d6436d4
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl/x509vfy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openssl/x509vfy.c b/src/openssl/x509vfy.c index fe51da4e..b5273a48 100644 --- a/src/openssl/x509vfy.c +++ b/src/openssl/x509vfy.c @@ -332,6 +332,10 @@ xmlSecOpenSSLX509StoreVerify(xmlSecKeyDataStorePtr store, XMLSEC_STACK_OF_X509* depth = X509_STORE_CTX_get_error_depth(&xsc); X509_STORE_CTX_cleanup (&xsc); + if(ret != 1 && keyInfoCtx->flags & XMLSEC_KEYINFO_FLAGS_ALLOW_BROKEN_CHAIN){ + ret = 1; + keyInfoCtx->flags2 |= XMLSEC_KEYINFO_ERROR_FLAGS_BROKEN_CHAIN; + } if(ret == 1) { res = cert; |