security: Advertise certificate creds support
authorDan Mihai <Daniel.Mihai@microsoft.com>
Fri, 11 Aug 2017 00:28:01 +0000 (17:28 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Fri, 11 Aug 2017 18:27:55 +0000 (18:27 +0000)
Allow the OBT to discover that the current device/app supports certificate
based credentials.

Note that this is an improvement just for those devices/apps generating a
default *.dat file when they start for the first time. Similar work will be
required for the IoTivity sample apps that use custom-made *.dat files.

CT1.7.4.2 is passing after this change.

Change-Id: Ia63d63e74bf637c376055b5c14ac4620304eb799
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
bug: https://jira.iotivity.org/browse/IOT-2604
Reviewed-on: https://gerrit.iotivity.org/gerrit/21865
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
resource/csdk/security/src/doxmresource.c

index 635823e..7f23048 100644 (file)
@@ -85,7 +85,7 @@ static OicSecDoxm_t gDefaultDoxm =
     &gDoxmDefaultOxm,       /* uint16_t *oxm */
     1,                      /* size_t oxmLen */
     OIC_RANDOM_DEVICE_PIN,  /* uint16_t oxmSel */
-    SYMMETRIC_PAIR_WISE_KEY,/* OicSecCredType_t sct */
+    SYMMETRIC_PAIR_WISE_KEY | SIGNED_ASYMMETRIC_KEY, /* OicSecCredType_t sct */
     false,                  /* bool owned */
     {.id = {0}},            /* OicUuid_t deviceID */
     false,                  /* bool dpc */