*
* @return ::OC_STACK_OK for Success, otherwise some error value.
*/
-OCStackResult InitDoxmResource();
+OCStackResult InitDoxmResource(void);
/**
* Perform cleanup for DOXM resources.
*
* @return ::OC_STACK_OK for Success, otherwise some error value.
*/
-OCStackResult DeInitDoxmResource();
+OCStackResult DeInitDoxmResource(void);
/**
* This method is used by SRM to retrieve DOXM resource data.
*
* @return reference to @ref OicSecDoxm_t, binary format of Doxm resource data.
*/
-const OicSecDoxm_t* GetDoxmResourceData();
+const OicSecDoxm_t* GetDoxmResourceData(void);
/**
* This method converts CBOR DOXM into binary DOXM.
*
* @return ::OC_STACK_OK for Success, otherwise some error value.
*/
-OCStackResult InitACLResource();
+OCStackResult InitACLResource(void);
/**
* Perform cleanup for ACL resources.
*
*/
-OCStackResult DeInitACLResource();
+OCStackResult DeInitACLResource(void);
/**
* This method is used by PolicyEngine to retrieve ACL for a Subject.
*
* @retval OC_STACK_OK for Success, otherwise some error value
*/
-OCStackResult UpdateDefaultSecProvACE();
+OCStackResult UpdateDefaultSecProvACE(void);
/**
* Internal function to update resource owner
*
* @return ::OC_STACK_OK for Success, otherwise some error value.
*/
-OCStackResult InitAmaclResource();
+OCStackResult InitAmaclResource(void);
/**
* Perform cleanup for Amacl resources.
*/
-void DeInitAmaclResource();
+void DeInitAmaclResource(void);
/**
* This function converts Amacl data into CBOR format.
* @return ::OC_STACK_OK, if initialization is successful, else ::OC_STACK_ERROR if
* initialization fails.
*/
-OCStackResult InitCredResource();
+OCStackResult InitCredResource(void);
/**
* Perform cleanup for credential resources.
* ::OC_STACK_NO_RESOURCE, if resource not found.
* ::OC_STACK_INVALID_PARAM, if invalid param.
*/
-OCStackResult DeInitCredResource();
+OCStackResult DeInitCredResource(void);
/**
* Log current server cred resource
*
* @return instance of @ref OicSecCred_t
*/
-const OicSecCred_t* GetCredList();
+const OicSecCred_t* GetCredList(void);
/**
* Function to deallocate allocated memory to OicSecCred_t.
*
* @return NULL if error occured (e.g. CRL did not set).
*/
-uint8_t* GetCrl();
+uint8_t* GetCrl(void);
/**
* This function get encoded with DER CRL from SRM.
*
* @return ::OC_STACK_OK for Success, otherwise some error value.
*/
-OCStackResult InitCRLResource();
+OCStackResult InitCRLResource(void);
/**
* Perform cleanup for CRL resources.
*
* @return ::OC_STACK_OK for Success, otherwise some error value.
*/
-OCStackResult DeInitCRLResource();
+OCStackResult DeInitCRLResource(void);
/**
* Get an instance of CRL resource.
*
* @return reference to the OicSecCrl_t, holding reference to CRL resource.
*/
-OicSecCrl_t *GetCRLResource();
+OicSecCrl_t *GetCRLResource(void);
/**
* This function frees resources inside given OicSecCrl_t object
*
* @return OC_STACK_OK if successful; error otherwise.
*/
-OCStackResult InitCSRResource();
+OCStackResult InitCSRResource(void);
/**
* De-initialize the CSR resource.
*
* @return OC_STACK_OK if successful; error otherwise.
*/
-OCStackResult DeInitCSRResource();
+OCStackResult DeInitCSRResource(void);
/**
* This function converts a CBOR payload into a CSR.
*
* @return char * reference to memory buffer containing SVR database.
*/
-char * GetSVRDatabase();
+char * GetSVRDatabase(void);
/**
* Reads the Secure Virtual Database from PS
*
* @return ::OC_STACK_OK for Success, otherwise some error value.
*/
-OCStackResult InitPstatResource();
+OCStackResult InitPstatResource(void);
/**
* Load just the default pstat into gPstat, so that other functions
*
* @return ::OC_STACK_OK for Success, otherwise ::OC_STACK_ERROR.
*/
-OCStackResult InitPstatResourceToDefault();
+OCStackResult InitPstatResourceToDefault(void);
/**
* Perform cleanup for Pstat resources.
*
* @return ::OC_STACK_OK for Success, otherwise some error value.
*/
-OCStackResult DeInitPstatResource();
+OCStackResult DeInitPstatResource(void);
/**
* Converts PSTAT into the cbor payload, including only the
*
* @return ::OC_STACK_OK for Success, otherwise some error value
*/
-OCStackResult InitSecureResources();
+OCStackResult InitSecureResources(void);
/**
* Perform cleanup for secure resources ( /oic/sec/cred, /oic/sec/acl, /oic/sec/pstat etc).
*
* @return ::OC_STACK_OK for Success, otherwise some error value
*/
-OCStackResult DestroySecureResources();
+OCStackResult DestroySecureResources(void);
/**
* Reset SVRs to backup values kept in persistent storage. These backup values
*
* @return ::OC_STACK_OK for Success, otherwise some error value
*/
-OCStackResult ResetSecureResources();
+OCStackResult ResetSecureResources(void);
/**
* This method is used by all secure resource modules to send responses to REST queries.
*
* @return OC_STACK_OK if successful; error otherwise
*/
-OCStackResult InitRolesResource();
+OCStackResult InitRolesResource(void);
/**
* De-initialize the roles resource.
*
* @return OC_STACK_OK if successful; error otherwise
*/
-OCStackResult DeInitRolesResource();
+OCStackResult DeInitRolesResource(void);
/**
* Register the PSK credential being used for authentication. This is used by the cred resource
*
* @return The pointer to Persistent Storage callback handler.
*/
-OCPersistentStorage* SRMGetPersistentStorageHandler();
+OCPersistentStorage* SRMGetPersistentStorageHandler(void);
/**
* Register request and response callbacks. Requests and responses are delivered in these callbacks.
* Initialize all secure resources ( /oic/sec/cred, /oic/sec/acl, /oic/sec/pstat etc).
* @return ::OC_STACK_OK for Success, otherwise some error value.
*/
-OCStackResult SRMInitSecureResources();
+OCStackResult SRMInitSecureResources(void);
/**
* Perform cleanup for secure resources ( /oic/sec/cred, /oic/sec/acl, /oic/sec/pstat etc).
*/
-void SRMDeInitSecureResources();
+void SRMDeInitSecureResources(void);
/**
* Provisioning API response callback.
/**
* Create PSTAT resource after default PSTAT initialization is done.
*/
-OCStackResult CreatePstatResource();
+OCStackResult CreatePstatResource(void);
/**
* Create SP resource after default SP initialization is done.
/**
* This internal method is used to create '/oic/sec/Cred' resource.
*/
-OCStackResult CreateCredResource();
+OCStackResult CreateCredResource(void);
/**
* This function converts from CBOR format into credential structure .
/**
* This internal method is used to create '/oic/sec/doxm' resource.
*/
-OCStackResult CreateDoxmResource();
+OCStackResult CreateDoxmResource(void);
/**
* This internal method is the entity handler for DOXM resources.
/**
* Unset Callback for displaying verification PIN
*/
-void* OC_CALL UnsetDisplayNumCB();
+void* OC_CALL UnsetDisplayNumCB(void);
/**
* Set Callback for getting user confirmation
/**
* Unset Callback for getting user confirmation
*/
-void* OC_CALL UnsetUserConfirmCB();
+void* OC_CALL UnsetUserConfirmCB(void);
/**
* Set verification method option.
* @deprecated Use UnsetInputPinWithContextCB instead.
*
*/
-void OC_CALL UnsetInputPinCB();
+void OC_CALL UnsetInputPinCB(void);
/**
* Function to unset the input PIN callback.
* NOTE : Do not call this function while PIN based ownership transfer is in progress.
*/
-void OC_CALL UnsetInputPinWithContextCB();
+void OC_CALL UnsetInputPinWithContextCB(void);
/**
* Function to unset the PIN generation callback.
* @deprecated Use UnsetDisplayPinWithContextCB instead.
*
*/
-void OC_CALL UnsetGeneratePinCB();
+void OC_CALL UnsetGeneratePinCB(void);
/**
* Function to unset the PIN display callback.
* NOTE : Do not call this function while PIN based ownership transfer is in progress.
*/
-void OC_CALL UnsetDisplayPinWithContextCB();
+void OC_CALL UnsetDisplayPinWithContextCB(void);
/**
* Function to unset the PIN close callback.
* NOTE : Do not call this function while PIN based ownership transfer is in progress.
*/
-void OC_CALL UnsetClosePinCB();
+void OC_CALL UnsetClosePinCB(void);
/**
* Function to generate a random PIN.
/**
* Function to invoke the callback for close a PIN display.
*/
-void ClosePinDisplay();
+void ClosePinDisplay(void);
#ifdef MULTIPLE_OWNER
*
* @return OC_STACK_OK in case of success and other value otherwise.
*/
-OCStackResult PDMClose();
+OCStackResult PDMClose(void);
/**
* This method is used by provisioning manager free memory allocated to OCUuidList_t lists.
*
* @return OC_STACK_OK in case of success and other value otherwise.
*/
-OCStackResult OC_CALL OCClosePM();
+OCStackResult OC_CALL OCClosePM(void);
/**
* API to cleanup PDM in case of timeout.
*
* @return OC_STACK_OK in case of success and other value otherwise.
*/
-OCStackResult OC_CALL OCPDMCleanupForTimeout();
+OCStackResult OC_CALL OCPDMCleanupForTimeout(void);
/**
* The function is responsible for discovery of owned/unowned device is specified endpoint/deviceID.
* in order for the effect of the change to take effect. This function shuts
* down the OC stack and restarts it.
*/
-static int closeAllSessions()
+static int closeAllSessions(void)
{
if (OC_STACK_OK != OCStop())
{
return 0;
}
-void shutdownProvisionClient()
+void shutdownProvisionClient(void)
{
if(OC_STACK_OK != OCStop())
{
OICFreeAndSetToNull((void**)&g_prvn_fname);
}
-static int initDiscoverRegisterAllDevices()
+static int initDiscoverRegisterAllDevices(void)
{
if(initProvisionClient())
{
}
-int TestTrustAnchorProvisioning()
+int TestTrustAnchorProvisioning(void)
{
int ret = -1;
return ret;
}
-int TestCSRResource()
+int TestCSRResource(void)
{
int ret = -1;
return ret;
}
-int TestCertUse()
+int TestCertUse(void)
{
int ret = -1;
return ret;
}
-int TestRoleProvisioning()
+int TestRoleProvisioning(void)
{
int ret = -1;
return ret;
}
-int TestRoleAssertion()
+int TestRoleAssertion(void)
{
int ret = -1;
return ret;
}
-int TestRoleAssertionAndUse()
+int TestRoleAssertionAndUse(void)
{
int ret = -1;
return ret;
}
-int TestSymmetricRoleUse()
+int TestSymmetricRoleUse(void)
{
int ret = -1;
}
}
-int main()
+int main(void)
{
for (;;)
{
*
* The CA's key and cert are written to g_caKeyPem and g_caCertPem (resp.).
*/
-static int setupCA()
+static int setupCA(void)
{
char* publicKey = NULL;
size_t publicKeyLen = 0;
return 0;
}
-static int provisionPreconfigPIN()
+static int provisionPreconfigPIN(void)
{
// check |own_list| for removing device
if(!g_mot_enable_list || 1>g_mot_enable_cnt)
}
#endif
-static void selectVerifMethod()
+static void selectVerifMethod(void)
{
int option;
printf(" Select verification method for ownership transfer\n");
#endif
// main function for provisioning client using C-level provisioning API
-int main()
+int main(void)
{
// initialize provisioning client
if(initProvisionClient())
}
}
-int main()
+int main(void)
{
struct timespec timeout;
}
}
-int main()
+int main(void)
{
struct timespec timeout;
}
}
-int main()
+int main(void)
{
struct timespec timeout;
}
}
-int main()
+int main(void)
{
struct timespec timeout;
OIC_LOG(INFO, TAG, "============================");
}
-int main()
+int main(void)
{
OIC_LOG(DEBUG, TAG, "OCServer is starting...");
return 0;
}
-static int discoverSubOwnerDevices()
+static int discoverSubOwnerDevices(void)
{
// delete un/owned device lists before updating them
if(g_mowned_list)
return 0;
}
-static int sendGetLed()
+static int sendGetLed(void)
{
int selDevNum;
char query[256] = {0};
return 0;
}
-static int sendPutLed()
+static int sendPutLed(void)
{
int selDevNum;
char query[256] = {0};
return NULL;
}
-static int provisionAclForLed()
+static int provisionAclForLed(void)
{
OicSecAcl_t* acl = NULL;
}
// main function for provisioning client using C-level provisioning API
-int main()
+int main(void)
{
// initialize provisioning client
if(initProvisionClient())
*
* @return OC_STACK_OK in case of success and other value otherwise.
*/
-OCStackResult OC_CALL OCClosePM()
+OCStackResult OC_CALL OCClosePM(void)
{
return PDMClose();
}
-OCStackResult OC_CALL OCPDMCleanupForTimeout()
+OCStackResult OC_CALL OCPDMCleanupForTimeout(void)
{
return PDMDeleteDeviceWithState(PDM_DEVICE_INIT);
}
/**
* Function to begin any transaction
*/
-static OCStackResult begin()
+static OCStackResult begin(void)
{
int res = 0;
res = sqlite3_exec(g_db, PDM_SQLITE_TRANSACTION_BEGIN, NULL, NULL, NULL);
/**
* Function to commit any transaction
*/
-static OCStackResult commit()
+static OCStackResult commit(void)
{
int res = 0;
res = sqlite3_exec(g_db, PDM_SQLITE_TRANSACTION_COMMIT, NULL, NULL, NULL);
/**
* Function to rollback any transaction
*/
-static OCStackResult rollback()
+static OCStackResult rollback(void)
{
int res = 0;
res = sqlite3_exec(g_db, PDM_SQLITE_TRANSACTION_ROLLBACK, NULL, NULL, NULL);
return OC_STACK_OK;
}
-OCStackResult PDMClose()
+OCStackResult PDMClose(void)
{
OIC_LOG_V(DEBUG, TAG, "IN %s", __func__);
return OC_STACK_OK;
}
-int main()
+int main(void)
{
struct timespec timeout;
/**
* This internal method is used to create the '/oic/sec/acl' and '/oic/sec/acl2' resources.
*/
-static OCStackResult CreateACLResource()
+static OCStackResult CreateACLResource(void)
{
OCStackResult ret;
return ret;
}
-OCStackResult InitACLResource()
+OCStackResult InitACLResource(void)
{
OCStackResult ret = OC_STACK_ERROR;
return ret;
}
-OCStackResult DeInitACLResource()
+OCStackResult DeInitACLResource(void)
{
OCStackResult ret = OCDeleteResource(gAclHandle);
gAclHandle = NULL;
*
* @return Default ACE for security resource.
*/
-static OicSecAce_t* GetSecDefaultACE()
+static OicSecAce_t* GetSecDefaultACE(void)
{
const int NUM_OF_DOXM_RT = 1;
const int NUM_OF_DOXM_IF = 1;
}
-OCStackResult UpdateDefaultSecProvACE()
+OCStackResult UpdateDefaultSecProvACE(void)
{
OCStackResult ret = OC_STACK_OK;
OicSecAce_t *ace = NULL;
/**
* This internal method is used to create '/oic/sec/amacl' resource.
*/
-static OCStackResult CreateAmaclResource()
+static OCStackResult CreateAmaclResource(void)
{
OCStackResult ret = OCCreateResource(&gAmaclHandle,
OIC_RSRC_TYPE_SEC_AMACL,
return ret;
}
-OCStackResult InitAmaclResource()
+OCStackResult InitAmaclResource(void)
{
OCStackResult ret = OC_STACK_ERROR;
return ret;
}
-void DeInitAmaclResource()
+void DeInitAmaclResource(void)
{
OCDeleteResource(gAmaclHandle);
gAmaclHandle = NULL;
}
/* Produce debugging output for all credentials, output metadata. */
-static void logCredMetadata()
+static void logCredMetadata(void)
{
#if defined(TB_LOG)
OicSecCred_t * temp = NULL;
*
* @return next available credId if successful, else 0 for error.
*/
-static uint16_t GetCredId()
+static uint16_t GetCredId(void)
{
//Sorts credential list in incremental order of credId
/** @todo: Remove pragma for VS2013 warning; Investigate fixing LL_SORT macro */
*
* @return NULL for now.
*/
-static OicSecCred_t* GetCredDefault()
+static OicSecCred_t* GetCredDefault(void)
{
// TODO:Update it when we finalize the default info.
return NULL;
* OC_STACK_OK - no errors
* OC_STACK_ERROR - stack process error
*/
-static OCStackResult RemoveAllCredentials()
+static OCStackResult RemoveAllCredentials(void)
{
DeleteCredList(gCred);
gCred = GetCredDefault();
return ret;
}
-OCStackResult CreateCredResource()
+OCStackResult CreateCredResource(void)
{
OCStackResult ret = OCCreateResource(&gCredHandle,
OIC_RSRC_TYPE_SEC_CRED,
return ret;
}
-OCStackResult InitCredResource()
+OCStackResult InitCredResource(void)
{
OCStackResult ret = OC_STACK_ERROR;
OicSecCred_t* cred = NULL;
return ret;
}
-OCStackResult DeInitCredResource()
+OCStackResult DeInitCredResource(void)
{
OCStackResult result = OCDeleteResource(gCredHandle);
DeleteCredList(gCred);
return NULL;
}
-const OicSecCred_t* GetCredList()
+const OicSecCred_t* GetCredList(void)
{
return gCred;
}
/**
* This internal method is used to create '/oic/sec/crl' resource.
*/
-static OCStackResult CreateCRLResource()
+static OCStackResult CreateCRLResource(void)
{
OCStackResult ret = OCCreateResource(&gCrlHandle,
OIC_RSRC_TYPE_SEC_CRL,
* Get the default value.
* @return defaultCrl for now.
*/
-static OicSecCrl_t *GetCrlDefault()
+static OicSecCrl_t *GetCrlDefault(void)
{
OicSecCrl_t *defaultCrl = (OicSecCrl_t *)OICCalloc(1, sizeof(OicSecCrl_t));
if (NULL == defaultCrl)
* OC_STACK_OK - no errors
* OC_STACK_ERROR - stack process error
*/
-OCStackResult InitCRLResource()
+OCStackResult InitCRLResource(void)
{
OCStackResult ret = OC_STACK_ERROR;
// Read Crl resource from PS
/**
* Perform cleanup for CRL resources.
*/
-OCStackResult DeInitCRLResource()
+OCStackResult DeInitCRLResource(void)
{
OCStackResult result = OCDeleteResource(gCrlHandle);
gCrlHandle = NULL;
return result;
}
-OicSecCrl_t *GetCRLResource()
+OicSecCrl_t *GetCRLResource(void)
{
OicSecCrl_t *crl = NULL;
return result;
}
-uint8_t *GetCrl()
+uint8_t *GetCrl(void)
{
uint8_t *data = NULL;
size_t size = 0;
return ret;
}
-OCStackResult InitCSRResource()
+OCStackResult InitCSRResource(void)
{
OCStackResult ret = OCCreateResource(&gCsrHandle,
OIC_RSRC_TYPE_SEC_CSR,
return ret;
}
-OCStackResult DeInitCSRResource()
+OCStackResult DeInitCSRResource(void)
{
OCStackResult res = OCDeleteResource(gCsrHandle);
/**
* @return true if Device meets requirements to enter RFNOP DOS.
*/
-static bool IsReadyToEnterRFNOP()
+static bool IsReadyToEnterRFNOP(void)
{
bool ret = false;
bool tempBool = false;
/**
* @return true if Device meets requirements to enter RFOTM DOS.
*/
-static bool IsReadyToEnterRFOTM()
+static bool IsReadyToEnterRFOTM(void)
{
bool ret = false;
/**
* @return true if Device meets requirements to enter RFPRO DOS.
*/
-static bool IsReadyToEnterRFPRO()
+static bool IsReadyToEnterRFPRO(void)
{
bool ret = false;
/**
* @return true if Device meets requirements to set pstat.dos.s = SRESET.
*/
-static bool IsReadyToEnterSRESET()
+static bool IsReadyToEnterSRESET(void)
{
bool ret = false;
/**
* Enter RFNOP state and set all Server-controlled SVR Property values.
*/
-static bool EnterRFNOP()
+static bool EnterRFNOP(void)
{
bool ret = false;
/**
* Enter RFOTM state and set all Server-controlled SVR Property values.
*/
-static bool EnterRFOTM()
+static bool EnterRFOTM(void)
{
bool ret = false;
/**
* Enter RFPRO state and set all Server-controlled SVR Property values.
*/
-static bool EnterRFPRO()
+static bool EnterRFPRO(void)
{
bool ret = false;
/**
* Enter RESET state and set all Server-controlled SVR Property values.
*/
-static bool EnterRESET()
+static bool EnterRESET(void)
{
bool ret = false;
/**
* Enter SRESET state and set all Server-controlled SVR Property values.
*/
-static bool EnterSRESET()
+static bool EnterSRESET(void)
{
bool ret = false;
return ehRet;
}
-OCStackResult CreateDoxmResource()
+OCStackResult CreateDoxmResource(void)
{
OCStackResult ret = OCCreateResource(&gDoxmHandle,
OIC_RSRC_TYPE_SEC_DOXM,
* If DeviceID is NULL then generates the new DeviceID.
* Once DeviceID is assigned to the device it does not change for the lifetime of the device.
*/
-static OCStackResult CheckDeviceID()
+static OCStackResult CheckDeviceID(void)
{
OIC_LOG_V(DEBUG, TAG, "IN: %s", __func__);
*
* @return the default value of doxm, @ref OicSecDoxm_t.
*/
-static OicSecDoxm_t* GetDoxmDefault()
+static OicSecDoxm_t* GetDoxmDefault(void)
{
OIC_LOG(DEBUG, TAG, "GetDoxmToDefault");
return &gDefaultDoxm;
}
-const OicSecDoxm_t* GetDoxmResourceData()
+const OicSecDoxm_t* GetDoxmResourceData(void)
{
return gDoxm;
}
}
#endif //defined(__WITH_DTLS__) && defined(MULTIPLE_OWNER)
-OCStackResult InitDoxmResource()
+OCStackResult InitDoxmResource(void)
{
OCStackResult ret = OC_STACK_ERROR;
return ret;
}
-OCStackResult DeInitDoxmResource()
+OCStackResult DeInitDoxmResource(void)
{
OCStackResult ret = OCDeleteResource(gDoxmHandle);
if (gDoxm != &gDefaultDoxm)
g_displayPinCallbacks.closePinDisplayCallback = closeCB;
}
-void OC_CALL UnsetInputPinCB()
+void OC_CALL UnsetInputPinCB(void)
{
UnsetInputPinWithContextCB();
}
-void OC_CALL UnsetInputPinWithContextCB()
+void OC_CALL UnsetInputPinWithContextCB(void)
{
g_inputPinCallbacks.callback = NULL;
g_inputPinCallbacks.contextCallback = NULL;
g_inputPinCallbacks.context = NULL;
}
-void OC_CALL UnsetGeneratePinCB()
+void OC_CALL UnsetGeneratePinCB(void)
{
UnsetDisplayPinWithContextCB();
}
-void OC_CALL UnsetDisplayPinWithContextCB()
+void OC_CALL UnsetDisplayPinWithContextCB(void)
{
g_displayPinCallbacks.callback = NULL;
g_displayPinCallbacks.contextCallback = NULL;
g_displayPinCallbacks.context = NULL;
}
-void OC_CALL UnsetClosePinDisplayCB()
+void OC_CALL UnsetClosePinDisplayCB(void)
{
g_displayPinCallbacks.closePinDisplayCallback = NULL;
}
-void ClosePinDisplay()
+void ClosePinDisplay(void)
{
if (g_displayPinCallbacks.closePinDisplayCallback)
{
OIC_LOG(DEBUG, TAG, "OUT SetDisplayNumCB");
}
-void* OC_CALL UnsetDisplayNumCB()
+void* OC_CALL UnsetDisplayNumCB(void)
{
OIC_LOG(DEBUG, TAG, "IN UnsetDisplayNumCB");
void *prevctx = gDisplayNumContext.context;
OIC_LOG(DEBUG, TAG, "OUT SetUserConfirmCB");
}
-void* OC_CALL UnsetUserConfirmCB()
+void* OC_CALL UnsetUserConfirmCB(void)
{
OIC_LOG(DEBUG, TAG, "IN UnsetUserConfirmCB");
void *prevctx = gUserConfirmContext.context;
*
* @return the gDefaultPstat pointer.
*/
-static OicSecPstat_t* GetPstatDefault()
+static OicSecPstat_t* GetPstatDefault(void)
{
return &gDefaultPstat;
}
/**
* This internal method is used to create '/oic/sec/pstat' resource.
*/
- OCStackResult CreatePstatResource()
+ OCStackResult CreatePstatResource(void)
{
OCStackResult ret = OCCreateResource(&gPstatHandle,
OIC_RSRC_TYPE_SEC_PSTAT,
return ret;
}
-OCStackResult InitPstatResource()
+OCStackResult InitPstatResource(void)
{
OCStackResult ret = OC_STACK_ERROR;
return ret;
}
-OCStackResult InitPstatResourceToDefault()
+OCStackResult InitPstatResourceToDefault(void)
{
gPstat = GetPstatDefault();
VERIFY_NOT_NULL(TAG, gPstat, FATAL);
return OC_STACK_ERROR;
}
-OCStackResult DeInitPstatResource()
+OCStackResult DeInitPstatResource(void)
{
if (gPstat != &gDefaultPstat)
{
return OC_STACK_ERROR;
}
-bool IsPstatRowneruuidTheNilUuid()
+bool IsPstatRowneruuidTheNilUuid(void)
{
if (gPstat)
{
return OC_STACK_OK;
}
-OCStackResult ResetSecureResources()
+OCStackResult ResetSecureResources(void)
{
OCStackResult ret = OC_STACK_ERROR;
return ehRet;
}
-OCStackResult InitRolesResource()
+OCStackResult InitRolesResource(void)
{
OCStackResult res = OCCreateResource(&gRolesHandle,
OIC_RSRC_TYPE_SEC_ROLES,
return res;
}
-OCStackResult DeInitRolesResource()
+OCStackResult DeInitRolesResource(void)
{
OCStackResult res = OCDeleteResource(gRolesHandle);
return OCRegisterPersistentStorageHandler(persistentStorageHandler);
}
-OCPersistentStorage* SRMGetPersistentStorageHandler()
+OCPersistentStorage* SRMGetPersistentStorageHandler(void)
{
return OCGetPersistentStorageHandler();
}
-OCStackResult SRMInitSecureResources()
+OCStackResult SRMInitSecureResources(void)
{
// TODO: temporarily returning OC_STACK_OK every time until default
// behavior (for when SVR DB is missing) is settled.
return ret;
}
-void SRMDeInitSecureResources()
+void SRMDeInitSecureResources(void)
{
DestroySecureResources();
}
return pmsn;
}
-static uint16_t generateAceid()
+static uint16_t generateAceid(void)
{
bool usedId[ACE_MAX_ENTITY + 1] = {false/*unused*/, false};
uint16_t cand = ACE_MAX_ENTITY + 1;
CRED_EDIT_ROWNERUUID = 3,
} CredModifyType_t;
-void RefreshCred()
+void RefreshCred(void)
{
uint8_t *secPayload = NULL;
size_t payloadSize = 0;
#include "svrdbeditorcommon.h"
#include "experimental/securevirtualresourcetypes.h"
-void RefreshCred();
+void RefreshCred(void);
void PrintCredList(const OicSecCred_t *creds);
void HandleCredOperation(SubOperationType_t cmd);
return dpm;
}
-static unsigned int InputDpom()
+static unsigned int InputDpom(void)
{
unsigned int dpom = 0;
unsigned int dpom_msk = 1; //default mask