Svrdbeditor print certs 17/22517/2
authorOleksii Beketov <ol.beketov@samsung.com>
Tue, 19 Sep 2017 11:37:33 +0000 (14:37 +0300)
committerRandeep Singh <randeep.s@samsung.com>
Thu, 21 Sep 2017 09:38:35 +0000 (09:38 +0000)
Add print certificates

Change-Id: I92092c96ed467877bad8517c02d2d936b25f038b
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
resource/csdk/security/tool/svrdbeditor_src/svrdbeditorcred.c

index 9a03ec9..1cf86e0 100644 (file)
@@ -257,6 +257,7 @@ void PrintCredList(const OicSecCred_t *creds)
                     PRINT_DATA("%-17s : ", OIC_JSON_ENCODING_NAME);
                     PrintCredEncodingType(cred->publicData.encoding);
 
+                    PrintBuffer(cred->publicData.data, cred->publicData.len);
 
                     if (cred->credUsage &&
                         (0 == strcmp(cred->credUsage, PRIMARY_CERT) ||
@@ -278,6 +279,7 @@ void PrintCredList(const OicSecCred_t *creds)
                         {
                             PRINT_INFO("[Cert #%d]", (i + 1));
                             mbedtls_x509_crt_info( buf, sizeof(buf) - 1, "", tmpCrt );
+                            PrintBuffer(inf.crt.data, inf.crt.len);
                             PRINT_DATA("%s", buf);
                         }
                         mbedtls_x509_crt_free(&crt);