diff options
author | cc1.yim <cc1.yim@samsung.com> | 2013-08-07 17:07:39 +0900 |
---|---|---|
committer | cc1.yim <cc1.yim@samsung.com> | 2013-08-07 17:07:45 +0900 |
commit | 6645ac1d402f73559fbe290232dec248df1c89fe (patch) | |
tree | 699d9d5430258d5b74b5e7290040204f8d528a67 | |
parent | b1b2ac5294166271a366933a8166ce92830ee372 (diff) | |
download | xmlsec1-submit/tizen_2.2/20130814.101621.tar.gz xmlsec1-submit/tizen_2.2/20130814.101621.tar.bz2 xmlsec1-submit/tizen_2.2/20130814.101621.zip |
Change-Id: Id408614a1960fb7ea147da7688a3c4c1ce3fe575
Signed-off-by: cc1.yim <cc1.yim@samsung.com>
-rw-r--r-- | src/xmldsig.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/xmldsig.c b/src/xmldsig.c index 670e0e5d..91544e57 100644 --- a/src/xmldsig.c +++ b/src/xmldsig.c @@ -2167,27 +2167,26 @@ xmlSecDSigCtxProcessSignedInfoNodeEx(xmlSecDSigCtxPtr dsigCtx, xmlNodePtr node, } /* process */ - ret = xmlSecDSigReferenceCtxProcessNodeEx(dsigRefCtx, cur, noHash, pList); - if(ret < 0) { - xmlSecError(XMLSEC_ERRORS_HERE, - NULL, - "xmlSecDSigReferenceCtxProcessNode", - XMLSEC_ERRORS_R_XMLSEC_FAILED, - "node=%s", - xmlSecErrorsSafeString(xmlSecNodeGetName(cur))); + if(noHash != 1){ //if 0, then partial ///if 1, then no_hash + ret = xmlSecDSigReferenceCtxProcessNodeEx(dsigRefCtx, cur, noHash, pList); + if(ret < 0) { + xmlSecError(XMLSEC_ERRORS_HERE, + NULL, + "xmlSecDSigReferenceCtxProcessNode", + XMLSEC_ERRORS_R_XMLSEC_FAILED, + "node=%s", + xmlSecErrorsSafeString(xmlSecNodeGetName(cur))); - if(noHash != 1){ ret = -1; goto error; } - } + } - if(noHash == 1) { - dsigRefCtx->status = xmlSecDSigStatusSucceeded; - } + dsigRefCtx->status = xmlSecDSigStatusSucceeded; /* bail out if next Reference processing failed */ if(dsigRefCtx->status != xmlSecDSigStatusSucceeded) { + xmlSecError(XMLSEC_ERRORS_HERE, NULL, NULL, XMLSEC_ERRORS_MAX_NUMBER, "###### false"); dsigCtx->status = xmlSecDSigStatusInvalid; ret = -1; goto error; |