summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsangwan.kwon <sangwan.kwon@samsung.com>2016-07-29 01:12:09 (GMT)
committersangwan.kwon <sangwan.kwon@samsung.com>2016-07-29 01:15:00 (GMT)
commitc6168f0894366bf18d60caad56a5bb96aec95fa5 (patch)
tree9bd6a5f3bb9d4e8f9ad4888ca2fca6b159672d66
parente39c3193b51ea3b1a3ae85fb8ca368d41ed00802 (diff)
downloadxmlsec1-c6168f0894366bf18d60caad56a5bb96aec95fa5.zip
xmlsec1-c6168f0894366bf18d60caad56a5bb96aec95fa5.tar.gz
xmlsec1-c6168f0894366bf18d60caad56a5bb96aec95fa5.tar.bz2
Fix unnecessary space and set align on custom coderefs/changes/61/81861/1
Change-Id: Id68ea7ca89d2911507ad9a2d1290638b69691479 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
-rw-r--r--include/xmlsec/keyinfo.h2
-rw-r--r--include/xmlsec/xmldsig.h4
-rw-r--r--src/errors.c10
-rw-r--r--src/xmldsig.c26
4 files changed, 21 insertions, 21 deletions
diff --git a/include/xmlsec/keyinfo.h b/include/xmlsec/keyinfo.h
index 63b199c..b2f24d1 100644
--- a/include/xmlsec/keyinfo.h
+++ b/include/xmlsec/keyinfo.h
@@ -154,7 +154,7 @@ typedef enum {
*/
#define XMLSEC_KEYINFO_FLAGS_X509DATA_SKIP_STRICT_CHECKS 0x00004000
-/**
+/**
* XMLSEC_KEYINFO_FLAGS_SKIP_VERIFY_CHAIN:
*
* If the flag is set then we wont stop document validation
diff --git a/include/xmlsec/xmldsig.h b/include/xmlsec/xmldsig.h
index 6c8e12b..5a37598 100644
--- a/include/xmlsec/xmldsig.h
+++ b/include/xmlsec/xmldsig.h
@@ -257,8 +257,8 @@ XMLSEC_EXPORT void xmlSecDSigReferenceCtxDebugDump (xmlSecDSigRefer
XMLSEC_EXPORT void xmlSecDSigReferenceCtxDebugXmlDump(xmlSecDSigReferenceCtxPtr dsigRefCtx,
FILE* output);
-XMLSEC_EXPORT int xmlSecDSigCtxVerifyEx(xmlSecDSigCtxPtr dsigCtx,
- xmlNodePtr node, int noHash, void* pList);
+XMLSEC_EXPORT int xmlSecDSigCtxVerifyEx(xmlSecDSigCtxPtr dsigCtx,
+ xmlNodePtr node, int noHash, void* pList);
diff --git a/src/errors.c b/src/errors.c
index 0c14da7..1c7e989 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -221,9 +221,9 @@ xmlSecErrorsGetMsg(xmlSecSize pos) {
* function.
*/
void
-xmlSecError(const char* file, int line, const char* func,
- const char* errorObject, const char* errorSubject,
- int reason, const char* msg, ...) {
+xmlSecError(const char* file, int line, const char* func,
+ const char* errorObject, const char* errorSubject,
+ int reason, const char* msg, ...) {
if(xmlSecErrorsClbk != NULL) {
xmlChar error_msg[XMLSEC_ERRORS_BUFFER_SIZE] = {'\0',};
@@ -253,6 +253,6 @@ xmlSecError(const char* file, int line, const char* func,
} else {
error_msg[0] = '\0';
}
-
- xmlSecErrorsClbk(file, line, func, errorObject, errorSubject, reason, (char*)error_msg); }
+ xmlSecErrorsClbk(file, line, func, errorObject, errorSubject, reason, (char*)error_msg);
+ }
}
diff --git a/src/xmldsig.c b/src/xmldsig.c
index ff340f7..1c45fd0 100644
--- a/src/xmldsig.c
+++ b/src/xmldsig.c
@@ -1660,12 +1660,12 @@ xmlSecDSigReferenceCtxProcessNode(xmlSecDSigReferenceCtxPtr dsigRefCtx, xmlNodeP
sprintf(logMsg, "uri:%s", (char*)dsigRefCtx->uri);
logMsg[strlen(dsigRefCtx->uri)+5] = '\0';
xmlSecError(XMLSEC_ERRORS_HERE,
- NULL,
- "xmlSecTransformCtxExecute",
- XMLSEC_ERRORS_R_XMLSEC_FAILED,
- logMsg);
+ NULL,
+ "xmlSecTransformCtxExecute",
+ XMLSEC_ERRORS_R_XMLSEC_FAILED,
+ logMsg);
return(-1);
- }
+ }
dsigRefCtx->result = transformCtx->result;
if(dsigRefCtx->dsigCtx->operation == xmlSecTransformOperationSign) {
@@ -1680,23 +1680,23 @@ xmlSecDSigReferenceCtxProcessNode(xmlSecDSigReferenceCtxPtr dsigRefCtx, xmlNodeP
/* write signed data to xml */
xmlNodeSetContentLen(digestValueNode,
- xmlSecBufferGetData(dsigRefCtx->result),
- xmlSecBufferGetSize(dsigRefCtx->result));
+ xmlSecBufferGetData(dsigRefCtx->result),
+ xmlSecBufferGetSize(dsigRefCtx->result));
/* set success status and we are done */
dsigRefCtx->status = xmlSecDSigStatusSucceeded;
} else {
/* verify SignatureValue node content */
- ret = xmlSecTransformVerifyNodeContent(dsigRefCtx->digestMethod,
- digestValueNode, transformCtx);
+ ret = xmlSecTransformVerifyNodeContent(dsigRefCtx->digestMethod,
+ digestValueNode, transformCtx);
if(ret < 0) {
sprintf(logMsg, "uri:%s", (char*)dsigRefCtx->uri);
logMsg[strlen(dsigRefCtx->uri)+5] = '\0';
xmlSecError(XMLSEC_ERRORS_HERE,
- NULL,
- "xmlSecTransformVerifyNodeContent",
- XMLSEC_ERRORS_R_XMLSEC_FAILED,
- logMsg);
+ NULL,
+ "xmlSecTransformVerifyNodeContent",
+ XMLSEC_ERRORS_R_XMLSEC_FAILED,
+ logMsg);
return(-1);
}