Fix unnecessary space and set align on custom code 61/81861/1
authorsangwan.kwon <sangwan.kwon@samsung.com>
Fri, 29 Jul 2016 01:12:09 +0000 (10:12 +0900)
committersangwan.kwon <sangwan.kwon@samsung.com>
Fri, 29 Jul 2016 01:15:00 +0000 (10:15 +0900)
Change-Id: Id68ea7ca89d2911507ad9a2d1290638b69691479
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
include/xmlsec/keyinfo.h
include/xmlsec/xmldsig.h
src/errors.c
src/xmldsig.c

index 63b199c..b2f24d1 100644 (file)
@@ -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
index 6c8e12b..5a37598 100644 (file)
@@ -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);
 
 
 
index 0c14da7..1c7e989 100644 (file)
@@ -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);
+    }
 }
index ff340f7..1c45fd0 100644 (file)
@@ -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);
         }