Commit f9aa664d authored by Dmitriy Zhuravlev's avatar Dmitriy Zhuravlev Committed by Nathan Heldt-Sheller

[IOT-2050] Fix insecure port while posting owner ACL

Endpoint port changed to secure port

Change-Id: If392847cc463f3f104f41198858752b50a4a3034
Signed-off-by: default avatarDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19037Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarKevin Kane <kkane@microsoft.com>
Reviewed-by: default avatarAndrii Shtompel <a.shtompel@samsung.com>
Reviewed-by: default avatarGreg Zaverucha <gregz@microsoft.com>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
Reviewed-by: Nathan Heldt-Sheller's avatarNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
parent aaf9bec0
......@@ -1751,6 +1751,17 @@ static OCStackResult PostOwnerAcl(OTMContext_t* otmCtx)
CAEndpoint_t endpoint;
CopyDevAddrToEndpoint(&deviceInfo->endpoint, &endpoint);
if (CA_ADAPTER_IP == endpoint.adapter)
{
endpoint.port = deviceInfo->securePort;
}
#ifdef WITH_TCP
else if (CA_ADAPTER_TCP == endpoint.adapter)
{
endpoint.port = deviceInfo->tcpPort;
}
#endif
if (CA_STATUS_OK != CAInitiateHandshake(&endpoint))
{
OIC_LOG(ERROR, TAG, "Failed to pass ssl handshake");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment