while(pc != NULL) {
if(strncmp(refUri, pc->cache, xmlStrlen(refUri)) == 0) {
isInProxy = 1;
+ xmlSecError(XMLSEC_ERRORS_HERE,
+ NULL,
+ NULL,
+ XMLSEC_ERRORS_MAX_NUMBER,
+ "[%s] is already checked by singature-validator.",
+ refUri);
break;
}
pc = pc->next;
}
+ xmlFree(refUri);
} else {
/* if proxy is not exist, process references */
xmlSecError(XMLSEC_ERRORS_HERE,
"Proxy doesn't exist.");
}
- if(isInProxy) {
- xmlSecError(XMLSEC_ERRORS_HERE,
- NULL,
- NULL,
- XMLSEC_ERRORS_MAX_NUMBER,
- "[%s] is already checked by singature-validator.",
- xmlGetProp(cur, xmlSecAttrURI));
+ if(isInProxy)
continue;
- }
}
/* TIZEN CUTUMIZED : check uri only in proxy caches for partial mode */
int isInProxy = 0;
if(dsigCtx->checkReferences != NULL) {
-
xmlChar* refUri = xmlGetProp(cur, xmlSecAttrURI);
if(refUri == NULL) {
xmlSecError(XMLSEC_ERRORS_HERE,
while(pc != NULL) {
if(xmlSecDecodeCmp(refUri, pc->cache) == 0) {
isInProxy = 1;
+ xmlSecError(XMLSEC_ERRORS_HERE,
+ NULL,
+ NULL,
+ XMLSEC_ERRORS_MAX_NUMBER,
+ "Check [%s] on processing references.",
+ refUri);
break;
}
pc = pc->next;
}
+ xmlFree(refUri);
} else {
/* if proxy is not exist, process references */
xmlSecError(XMLSEC_ERRORS_HERE,
}
/* if not exist on proxy, skip on processing references */
- if(isInProxy == 0) {
- xmlSecError(XMLSEC_ERRORS_HERE,
- NULL,
- NULL,
- XMLSEC_ERRORS_MAX_NUMBER,
- "Skip [%s] on processing references.",
- xmlGetProp(cur, xmlSecAttrURI));
+ if(isInProxy == 0)
continue;
- }
}
/* create reference */