Commit 456bc218 authored by Vitalii Irkha's avatar Vitalii Irkha Committed by Nathan Heldt-Sheller

[IOT-3047] Request to csr creates a new credential

Request to /oic/sec/csr creates itself a new credential
Get PrimarySertKey for appropriated Primary Certificate.

Change-Id: Ie09a186fb03c3cc0006a583fc6ea03c5aa739790
Signed-off-by: default avatarVitalii Irkha <v.irkha@samsung.com>
parent e8671983
......@@ -3959,7 +3959,7 @@ void GetPrimaryCertKey(ByteArray_t * key)
{
size_t length = temp->privateData.len;
if ((SIGNED_ASYMMETRIC_KEY == temp->credType || ASYMMETRIC_KEY == temp->credType) &&
if ((SIGNED_ASYMMETRIC_KEY == temp->credType) &&
(0 < length) &&
(NULL != temp->credUsage) &&
(0 == strcmp(temp->credUsage, PRIMARY_CERT)))
......
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