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 <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarKevin Kane <>
Reviewed-by: default avatarAndrii Shtompel <>
Reviewed-by: default avatarGreg Zaverucha <>
Reviewed-by: default avatarUze Choi <>
Reviewed-by: Nathan Heldt-Sheller's avatarNathan Heldt-Sheller <>
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;
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