The SSL session is always using the secure port - never the unsecured
port.
Change-Id: If4f490a720dc1943404f9364230ba1de1e232133
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17099
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
{
OIC_LOG(WARNING, TAG, "Internal error in PDMDeleteDevice");
}
+
CAEndpoint_t endpoint;
memcpy(&endpoint, &(otmCtx->selectedDeviceInfo->endpoint), sizeof(CAEndpoint_t));
+ endpoint.port = otmCtx->selectedDeviceInfo->securePort;
+
if (CA_STATUS_OK != CAcloseSslConnection(&endpoint))
{
OIC_LOG(WARNING, TAG, "Failed to close Secure session");