Commit 577bfabe authored by Chul Lee's avatar Chul Lee Committed by Randeep

Add OIC_ prefix for security module's log.

Change-Id: I6802265094222c0d01acc000a14b9b5afdacf6ee
Signed-off-by: default avatarChul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14107Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarKevin Kane <kkane@microsoft.com>
Reviewed-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
(cherry picked from commit af2c4591)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14149
parent 77b60576
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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};
......
......@@ -26,7 +26,7 @@
#include "srmutility.h"
#include "pmutility.h"
#define TAG "CLOUD-UTILS"
#define TAG "OIC_CLOUD_UTILS"
typedef struct {
void *ctx;
......
......@@ -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,
......
......@@ -60,7 +60,7 @@
#include "oxmrandompin.h"
#include "otmcontextlist.h"
#define TAG "MULTIPLE_OTM"
#define TAG "OIC_MULTIPLE_OTM"
/**********************************************************************
* API for Super Owner
......
......@@ -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
......
......@@ -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.
......
......@@ -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)
{
......
......@@ -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)
{
......
......@@ -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)
{
......
......@@ -49,7 +49,7 @@
#include "srmutility.h"
#define TAG ("PM-UTILITY")
#define TAG ("OIC_PM_UTILITY")
typedef struct _DiscoveryInfo{
OCProvisionDev_t **ppDevicesList;
......
......@@ -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
......
......@@ -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.
......
......@@ -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)
......
......@@ -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. */
......
......@@ -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,
......
......@@ -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
......
......@@ -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)
......
......@@ -61,7 +61,7 @@
#endif
#define TAG ("DP")
#define TAG ("OIC_DP")
static const uint16_t CBOR_SIZE = 1024;
/**
......
......@@ -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.
......
......@@ -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. */
......
......@@ -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)
......
......@@ -26,7 +26,7 @@
#include "debug.h"
#include "logger.h"
#define TAG "PBDKF2"
#define TAG "OIC_PBDKF2"
#define XOR_BUF(in, out, bufSize)\
do \
{\
......
......@@ -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;
......
......@@ -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)
{
......
......@@ -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)
{
......
......@@ -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
......
......@@ -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. */
......
......@@ -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"
......
......@@ -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;
......
......@@ -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)
{
......
......@@ -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. */
......
......@@ -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. */
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment