Refactor PSK Credential retrieval interface
authorSachin Agrawal <sachin.agrawal@intel.com>
Fri, 25 Sep 2015 18:20:29 +0000 (11:20 -0700)
committerSachin Agrawal <sachin.agrawal@intel.com>
Mon, 28 Sep 2015 22:04:46 +0000 (22:04 +0000)
commit134d702757cb17c888a6700ebd93bfc00a92f02e
tree7d4ffb7782ffa039edd59d17346614cc3bdd08c6
parente733fd89ad2f6dd9d442b89adee96bcedf671c9b
Refactor PSK Credential retrieval interface

When CA requests PSK credentials during DTLS handshake, SRM retrieves
credential for all devices and provides it to CA. This is un-necessary
and is in-efficient approach. Updated code to only provide credential
which has been requested by tinydtls.

Change-Id: Ie9bdc0ff1236b9f1f198215d211a682df416e731
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3009
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
14 files changed:
resource/csdk/connectivity/api/cainterface.h
resource/csdk/connectivity/api/casecurityinterface.h [new file with mode: 0644]
resource/csdk/connectivity/build/tizen/packaging/com.oic.ca.spec
resource/csdk/connectivity/external/inc/ocsecurityconfig.h [deleted file]
resource/csdk/connectivity/inc/caadapternetdtls.h
resource/csdk/connectivity/samples/android/casample/sampleService/src/main/jni/ResourceModel.c
resource/csdk/connectivity/samples/linux/sample_main.c
resource/csdk/connectivity/samples/tizen/casample.c
resource/csdk/connectivity/src/adapter_util/caadapternetdtls.c
resource/csdk/connectivity/src/caconnectivitymanager.c
resource/csdk/connectivity/test/ca_api_unittest.cpp
resource/csdk/security/include/internal/credresource.h
resource/csdk/security/provisioning/src/oxmrandompin.c
resource/csdk/security/src/credresource.c