Add OIC_ prefix for security module's log. 49/14149/2
authorChul Lee <chuls.lee@samsung.com>
Tue, 8 Nov 2016 08:35:01 +0000 (17:35 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Wed, 9 Nov 2016 10:31:37 +0000 (10:31 +0000)
Change-Id: I6802265094222c0d01acc000a14b9b5afdacf6ee
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14107
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit af2c4591eca2a68cc797f0ec41a53926cdfc23d4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14149

37 files changed:
resource/csdk/security/provisioning/src/cloud/aclgroup.c
resource/csdk/security/provisioning/src/cloud/aclid.c
resource/csdk/security/provisioning/src/cloud/aclinvite.c
resource/csdk/security/provisioning/src/cloud/crl.c
resource/csdk/security/provisioning/src/cloud/csr.c
resource/csdk/security/provisioning/src/cloud/utils.c
resource/csdk/security/provisioning/src/credentialgenerator.c
resource/csdk/security/provisioning/src/multipleownershiptransfermanager.c
resource/csdk/security/provisioning/src/ocprovisioningmanager.c
resource/csdk/security/provisioning/src/ownershiptransfermanager.c
resource/csdk/security/provisioning/src/oxmjustworks.c
resource/csdk/security/provisioning/src/oxmpreconfpin.c
resource/csdk/security/provisioning/src/oxmrandompin.c
resource/csdk/security/provisioning/src/pmutility.c
resource/csdk/security/provisioning/src/provisioningdatabasemanager.c
resource/csdk/security/provisioning/src/secureresourceprovider.c
resource/csdk/security/src/aclresource.c
resource/csdk/security/src/amaclresource.c
resource/csdk/security/src/amsmgr.c
resource/csdk/security/src/credresource.c
resource/csdk/security/src/crlresource.c
resource/csdk/security/src/directpairing.c
resource/csdk/security/src/doxmresource.c
resource/csdk/security/src/dpairingresource.c
resource/csdk/security/src/oxmpincommon.c
resource/csdk/security/src/pbkdf2.c
resource/csdk/security/src/pconfresource.c
resource/csdk/security/src/pkix_interface.c
resource/csdk/security/src/policyengine.c
resource/csdk/security/src/psinterface.c
resource/csdk/security/src/pstatresource.c
resource/csdk/security/src/resourcemanager.c
resource/csdk/security/src/secureresourcemanager.c
resource/csdk/security/src/srmutility.c
resource/csdk/security/src/svcresource.c
resource/csdk/security/src/verresource.c
resource/csdk/security/tool/json2cbor.c

index 3ca900c..f15e0af 100644 (file)
@@ -30,7 +30,7 @@
 #include "pmutility.h"
 #include "cacommonutil.h"
 
-#define TAG "CLOUD-ACL-GROUP"
+#define TAG "OIC_CLOUD_ACL_GROUP"
 
 /**
  * ACL create group request received data handler
index 64ee385..57ccef0 100644 (file)
@@ -31,7 +31,7 @@
 #include "payload_logging.h"
 #include "utlist.h"
 
-#define TAG "CLOUD-ACL-ID"
+#define TAG "OIC_CLOUD_ACL_ID"
 
 /**
  * ACL Id parse from received response
index 600a604..78d1097 100644 (file)
@@ -31,7 +31,7 @@
 #include "pmutility.h"
 #include "cacommonutil.h"
 
-#define TAG "CLOUD-ACL-INVITE"
+#define TAG "OIC_CLOUD_ACL_INVITE"
 
 /**
  * This helper function parses "name" : { "gid":[], "mid":[] } payload
index 84e228f..3ed179c 100644 (file)
@@ -33,7 +33,7 @@
 #include "payload_logging.h"
 #include "cacommonutil.h"
 
-#define TAG "CLOUD-CRL"
+#define TAG "OIC_CLOUD_CRL"
 
 /**
  * CRL GET request received data handler
index 5765c5e..eab8412 100644 (file)
@@ -49,7 +49,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 
-#define TAG "CLOUD-CSR"
+#define TAG "OIC_CLOUD_CSR"
 
 //TODO: is it required in CSR response?
 static OCByteString privateKey = {0, 0};
index da92219..9bcde50 100644 (file)
@@ -26,7 +26,7 @@
 #include "srmutility.h"
 #include "pmutility.h"
 
-#define TAG "CLOUD-UTILS"
+#define TAG "OIC_CLOUD_UTILS"
 
 typedef struct {
     void *ctx;
index cc39080..623ad74 100644 (file)
@@ -30,7 +30,7 @@
 #include "stdbool.h"
 #include "securevirtualresourcetypes.h"
 
-#define TAG "SRPAPI-CG"
+#define TAG "OIC_SRPAPI_CG"
 
 OCStackResult PMGeneratePairWiseCredentials(OicSecCredType_t type, size_t keySize,
         const OicUuid_t *ptDeviceId, const OicUuid_t *firstDeviceId,
index 3a59759..5248ce4 100644 (file)
@@ -60,7 +60,7 @@
 #include "oxmrandompin.h"
 #include "otmcontextlist.h"
 
-#define TAG "MULTIPLE_OTM"
+#define TAG "OIC_MULTIPLE_OTM"
 
 /**********************************************************************
  * API for Super Owner
index 2102ce3..7dd6bf4 100644 (file)
@@ -36,7 +36,7 @@
 #include "aclresource.h" //Note: SRM internal header
 #include "pconfresource.h"
 
-#define TAG "OCPMAPI"
+#define TAG "OIC_OCPMAPI"
 
 typedef struct Linkdata Linkdata_t;
 struct Linkdata
index a012c65..a1ee60f 100644 (file)
@@ -73,7 +73,7 @@
 #include "ocpayload.h"
 #include "payload_logging.h"
 
-#define TAG "OTM"
+#define TAG "OIC_OTM"
 
 /**
  * Variables for pointing the OTMContext to be used in the DTLS handshake result callback.
index 90b8dfe..90ee407 100644 (file)
@@ -30,7 +30,7 @@
 #include "pmtypes.h"
 #include "ownershiptransfermanager.h"
 
-#define TAG "OXM_JustWorks"
+#define TAG "OIC_OXM_JustWorks"
 
 OCStackResult CreateJustWorksSelectOxmPayload(OTMContext_t *otmCtx, uint8_t **payload, size_t *size)
 {
index 193a73a..ecdeb35 100644 (file)
@@ -37,7 +37,7 @@
 #include "pinoxmcommon.h"
 #include "srmresourcestrings.h"
 
-#define TAG "OXM_PreconfigPIN"
+#define TAG "OIC_OXM_PreconfigPIN"
 
 OCStackResult CreatePreconfigPinBasedSelectOxmPayload(OTMContext_t *otmCtx, uint8_t **payload, size_t *size)
 {
index 174b5a4..dcf7214 100644 (file)
@@ -36,7 +36,7 @@
 #include "ownershiptransfermanager.h"
 #include "pinoxmcommon.h"
 
-#define TAG "OXM_RandomPIN"
+#define TAG "OIC_OXM_RandomPIN"
 
 OCStackResult CreatePinBasedSelectOxmPayload(OTMContext_t* otmCtx, uint8_t **payload, size_t *size)
 {
index b5c6d9d..2f45b0c 100644 (file)
@@ -49,7 +49,7 @@
 
 #include "srmutility.h"
 
-#define TAG ("PM-UTILITY")
+#define TAG ("OIC_PM_UTILITY")
 
 typedef struct _DiscoveryInfo{
     OCProvisionDev_t    **ppDevicesList;
index 3a92cc2..68c8ece 100644 (file)
@@ -34,7 +34,7 @@
 
 #define DB_FILE "PDM.db"
 
-#define TAG "PDM"
+#define TAG "OIC_PDM"
 
 #define PDM_FIRST_INDEX 0
 #define PDM_SECOND_INDEX 1
index 9208420..ed6d6d1 100644 (file)
@@ -49,7 +49,7 @@
 #include "crlresource.h"
 #endif // WITH_X509__
 
-#define TAG "SRPAPI"
+#define TAG "OIC_SRPAPI"
 
 /**
  * Macro to verify argument is not equal to NULL.
index 1e86475..a94f750 100644 (file)
@@ -46,7 +46,7 @@
 
 #include "security_internals.h"
 
-#define TAG  "SRM-ACL"
+#define TAG  "OIC_SRM_ACL"
 #define NUMBER_OF_SEC_PROV_RSCS 4
 #define NUMBER_OF_DEFAULT_SEC_RSCS 2
 #define STRING_UUID_SIZE (UUID_LENGTH * 2 + 5)
index 8c8a35b..d7bdb2f 100644 (file)
@@ -31,7 +31,7 @@
 #include "srmutility.h"
 #include "amaclresource.h"
 
-#define TAG  "SRM-AMACL"
+#define TAG  "OIC_SRM_AMACL"
 
 /** Default cbor payload size. This value is increased in case of CborErrorOutOfMemory.
  * The value of payload size is increased until reaching belox max cbor size. */
index 3ddaac4..771f420 100644 (file)
@@ -36,7 +36,7 @@
 #include "oic_string.h"
 #include "caremotehandler.h"
 
-#define TAG "SRM-AMSMGR"
+#define TAG "OIC_SRM_AMSMGR"
 
  //Callback for AMS service multicast discovery request.
 static OCStackApplicationResult AmsMgrDiscoveryCallback(void *ctx, OCDoHandle handle,
index 74126f6..7363323 100644 (file)
@@ -64,7 +64,7 @@
 #include "global.h"
 #endif
 
-#define TAG  "SRM-CREDL"
+#define TAG  "OIC_SRM_CREDL"
 
 /** Max credential types number used for TLS */
 #define MAX_TYPE 2
index 33021ae..f2469ea 100644 (file)
@@ -34,7 +34,7 @@
 #include "base64.h"
 #include <time.h>
 
-#define TAG  "SRM-CRL"
+#define TAG  "OIC_SRM_CRL"
 
 #define SEPARATOR                   ":"
 #define SEPARATOR_LEN               (1)
index be6ea15..9f1dba3 100644 (file)
@@ -61,7 +61,7 @@
 #endif
 
 
-#define TAG ("DP")
+#define TAG ("OIC_DP")
 static const uint16_t CBOR_SIZE = 1024;
 
 /**
index 0b9a7e1..9fb2844 100644 (file)
@@ -52,7 +52,7 @@
 #include "srmutility.h"
 #include "pinoxmcommon.h"
 
-#define TAG  "SRM-DOXM"
+#define TAG  "OIC_SRM_DOXM"
 #define CHAR_ZERO ('0')
 
 /** Default cbor payload size. This value is increased in case of CborErrorOutOfMemory.
index d005645..f46b2ed 100644 (file)
@@ -51,7 +51,7 @@
 #include "global.h"
 #endif
 
-#define TAG  "SRM-DPAIRING"
+#define TAG  "OIC_SRM_DPAIRING"
 
 /** Default cbor payload size. This value is increased in case of CborErrorOutOfMemory.
  * The value of payload size is increased until reaching belox max cbor size. */
index 6d9be50..d3df5c4 100644 (file)
@@ -32,7 +32,7 @@
 #include "credresource.h"
 #include "cainterface.h"
 
-#define TAG "PIN_OXM_COMMON"
+#define TAG "OIC_PIN_OXM_COMMON"
 
 #define NUMBER_OF_PINNUM (10)
 #define NUMBER_OF_ALPHABET (26)
index b98c51b..9bbd760 100644 (file)
@@ -26,7 +26,7 @@
 #include "debug.h"
 #include "logger.h"
 
-#define TAG "PBDKF2"
+#define TAG "OIC_PBDKF2"
 #define XOR_BUF(in, out, bufSize)\
 do \
 {\
index 15d5e2d..61f27e6 100644 (file)
@@ -44,7 +44,7 @@
 #include <strings.h>
 #endif
 
-#define TAG  "SRM-PCONF"
+#define TAG  "OIC_SRM_PCONF"
 
 static const uint16_t CBOR_SIZE = 1024;
 static const uint64_t CBOR_MAX_SIZE = 4400;
index 8949aa6..c74f34b 100644 (file)
@@ -23,7 +23,7 @@
 #include "crlresource.h"
 #include "logger.h"
 
-#define TAG "SRM-PKIX-INTERFACE"
+#define TAG "OIC_SRM_PKIX_INTERFACE"
 
 void GetPkixInfo(PkiInfo_t * inf)
 {
index 8c60682..b08a64f 100644 (file)
@@ -37,7 +37,7 @@
 #include "amaclresource.h"
 #include "credresource.h"
 
-#define TAG "SRM-PE"
+#define TAG "OIC_SRM_PE"
 
 uint16_t GetPermissionFromCAMethod_t(const CAMethod_t method)
 {
index a7f87a9..4d2ea94 100644 (file)
@@ -39,7 +39,7 @@
 #include "pstatresource.h"
 #include "doxmresource.h"
 
-#define TAG  "SRM-PSI"
+#define TAG  "OIC_SRM_PSI"
 
 //SVR database buffer block size
 #ifdef _WIN32
index 5fa0ed3..8813297 100644 (file)
@@ -33,7 +33,7 @@
 #include "srmresourcestrings.h"
 #include "srmutility.h"
 
-#define TAG  "SRM-PSTAT"
+#define TAG  "OIC_SRM_PSTAT"
 
 /** Default cbor payload size. This value is increased in case of CborErrorOutOfMemory.
  * The value of payload size is increased until reaching below max cbor size. */
index c0246a8..221b873 100644 (file)
@@ -38,7 +38,7 @@
 //#endif // DIRECT_PAIRING
 #include "verresource.h"
 
-#define TAG "SRM-RM"
+#define TAG "OIC_SRM_RM"
 
 #if defined(__WITH_DTLS__) || defined(__WITH_TLS__)
 #include "crlresource.h"
index 96b81ba..373bd09 100644 (file)
@@ -37,7 +37,7 @@
 #if defined( __WITH_TLS__) || defined(__WITH_DTLS__)
 #include "pkix_interface.h"
 #endif //__WITH_TLS__ or __WITH_DTLS__
-#define TAG  "SRM"
+#define TAG  "OIC_SRM"
 
 //Request Callback handler
 static CARequestCallback gRequestHandler = NULL;
index 3131e13..b3685e2 100644 (file)
@@ -26,7 +26,7 @@
 #include "oic_malloc.h"
 #include "base64.h"
 
-#define TAG  "SRM-UTILITY"
+#define TAG  "OIC_SRM_UTILITY"
 
 void ParseQueryIterInit(const unsigned char * query, OicParseQueryIter_t * parseIter)
 {
index c14ef9b..4151f0c 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "security_internals.h"
 
-#define TAG  "SRM-SVC"
+#define TAG  "OIC_SRM_SVC"
 
 /** Default cbor payload size. This value is increased in case of CborErrorOutOfMemory.
  * The value of payload size is increased until reaching belox max cbor size. */
index 4979170..8241a03 100644 (file)
@@ -43,7 +43,7 @@
 #include "securevirtualresourcetypes.h"
 #include "srmutility.h"
 
-#define TAG  "SEC-VER"
+#define TAG  "OIC_SEC_VER"
 
 /** Default cbor payload size. This value is increased in case of CborErrorOutOfMemory.
  * The value of payload size is increased until reaching belox max cbor size. */
index d5bf2e7..34de8d9 100644 (file)
@@ -41,7 +41,7 @@
 #include "svcresource.h"
 #include "security_internals.h"
 
-#define TAG  "JSON2CBOR"
+#define TAG  "OIC_JSON2CBOR"
 #define MAX_RANGE   ((size_t)-1)
 //SVR database buffer block size