Commit 5a93b8ee authored by Oleksandr Andrieiev's avatar Oleksandr Andrieiev

[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.

(cherry picked from commit 456bc218)

Change-Id: I6714ab43430a01e2e05f111f72dfc0eb38499827
Signed-off-by: Oleksandr Andrieiev's avatarOleksandr Andrieiev <o.andrieiev@samsung.com>
parent 98cc1d4e
......@@ -3792,7 +3792,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