Commit b9acab40 authored by Oleksandr Dmytrenko's avatar Oleksandr Dmytrenko Committed by Aleksey

unused crl api

unused crl api

Change-Id: Ie0ac82f1aed69a1a4aab325f8d11e6f3d124278e
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
parent 628d2df2
......@@ -36,15 +36,6 @@ extern "C" {
*/
OCStackResult UpdateCRLResource(OicSecCrl_t *crl);
/**
* This function get encoded with base64 CRL from SRM.
*
* @note Caller responsible for resulting string memory (use OICFree to remove it).
*
* @return NULL if error occured (e.g. CRL did not set).
*/
uint8_t* GetCrl(void);
/**
* This function get encoded with DER CRL from SRM.
*
......
......@@ -788,19 +788,6 @@ exit:
return result;
}
uint8_t *GetCrl(void)
{
uint8_t *data = NULL;
size_t size = 0;
OicSecCrl_t *crl = NULL;
if (OC_STACK_OK == GetSecureVirtualDatabaseFromPS(OIC_CBOR_CRL_NAME, &data, &size) && data &&
OC_STACK_OK == CBORPayloadToCrl(data, size, &crl))
{
return crl->CrlData.data;
}
return NULL;
}
void GetDerCrl(ByteArray_t* out)
{
if(NULL == out)
......
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