Hi all,
Currently, I?m trying to port the ?Secure? version of the IoTivity into an embedded device. While I was tried to create a resource object of a remote resource from the Resource Client using an API ?constructResourceObject?, I found that the Stack doesn?t allow the host infor. of which length exceeds 40 bytes. Actually the target Resource server was supporting IPv6 and using secure version of IoTivity, the length of the host infor exceeds 40 bytes. Here is the error log & the actual string of the host infor of the Resource Server.. ? Error Log terminate called after throwing an instance of 'std::length_error' what(): host address is too long. ? Host infor. coaps://[fe80::a00:27ff:feaf:f911]:36238 As you can notice the length of the host infor. is 41 bytes.(including ?\0? at the end). Since the variables defined for the MAX length of the host infor. are exists both in the RI layer & CA layer & used by lots of locations inside the both layers, I think it will be better if the contributors of the both layers take a look at this and fix if necessary. (CA : cacommon.h MAX_ADDR_STR_SIZE_CA 40 , RI : octypes.h MAX_ADDR_STR_SIZE 40) I?ve created an issue on Jira (https://jira.iotivity.org/browse/IOT-824) I really will be appreciated if someone resolve this issue. J Thank you. Jay. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20151104/1d1c42cd/attachment.html>
