[IOT-3047] Request to csr creates a new credential 31/24931/2
authorVitalii Irkha <v.irkha@samsung.com>
Thu, 26 Apr 2018 16:15:39 +0000 (19:15 +0300)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Thu, 17 May 2018 15:10:39 +0000 (15:10 +0000)
Request to /oic/sec/csr creates itself a new credential
Get PrimarySertKey for appropriated Primary Certificate.

Change-Id: Ie09a186fb03c3cc0006a583fc6ea03c5aa739790
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
resource/csdk/security/src/credresource.c

index 25930ff..6361eda 100644 (file)
@@ -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)))