summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcc1.yim <cc1.yim@samsung.com>2013-08-07 17:07:39 +0900
committerAnas Nashif <anas.nashif@intel.com>2013-09-23 04:27:29 -0400
commitce83212e0cd5d85c6c725443a30384985fb48b72 (patch)
tree3409f4d2e6b683dd66be52e7856bc9f194a980cc
parentc8b0fdde7214fc7879563ea7dd69152894d268ed (diff)
downloadxmlsec1-ce83212e0cd5d85c6c725443a30384985fb48b72.tar.gz
xmlsec1-ce83212e0cd5d85c6c725443a30384985fb48b72.tar.bz2
xmlsec1-ce83212e0cd5d85c6c725443a30384985fb48b72.zip
Change-Id: Id408614a1960fb7ea147da7688a3c4c1ce3fe575 Signed-off-by: cc1.yim <cc1.yim@samsung.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
-rw-r--r--src/xmldsig.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/xmldsig.c b/src/xmldsig.c
index 8977a955..d48a2ca7 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;