Map the error code of CAGenerateToken() to OCStackResult. 26/212726/1
authorSenthil Kumar G S <senthil.gs@samsung.com>
Mon, 15 Jul 2019 12:37:54 +0000 (18:07 +0530)
committerSudipto Bal <sudipto.bal@samsung.com>
Mon, 26 Aug 2019 09:16:48 +0000 (09:16 +0000)
commit60492167598e8f994120a56d5e06958fdd360275
treeb951fc96f1884da4fe811f5201a3a3d80f2796b6
parent8181b88c9eb6b2b45708e5e6c124ad2a79ff1b90
Map the error code of CAGenerateToken() to OCStackResult.

CAGenerateToken could fail for memory overflow or invalid token parameters.
Currently, from OCDoRequest(), we return OC_STACK_ERROR for all failure cases.

This commit maps the error code to OCStackResult.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/a7e9837b18e33dd536af97f5c9ad35417b9457b8
(cherry-picked from a7e9837b18e33dd536af97f5c9ad35417b9457b8)

Change-Id: Ib26555a13eba9e7d925b0eb1db13b4fc12f74c6f
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
resource/csdk/stack/src/ocstack.c