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>