Access token property of the cloud needs to be changed from 256bytes to 1kb
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/392
(cherry picked from commit
89f95a89892e44f893c3d395bcd3cde142efb0c0)
Change-Id: I57d5b1caeeca75f526df9e51d78d80fa75d6aae2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
typedef struct
{
char authCode[OIC_STRING_MAX_VALUE]; /**< Auth code issued by OAuth2.0-compatible account server **/
- char accessToken[OIC_STRING_MAX_VALUE]; /**< Access token resolved with an auth code **/
+ char accessToken[OIC_STRING_ACCESS_TOKEN_MAX_VALUE]; /**< Access token resolved with an auth code **/
OAUTH_TOKENTYPE accessTokenType; /**< Access token type **/
char authProvider[OIC_STRING_MAX_VALUE]; /**< Auth provider ID **/
char ciServer[OIC_STRING_MAX_VALUE]; /**< Cloud interface server URL which an Enrollee is going to registered **/
}
memset(cloudData->authCode, 0, OIC_STRING_MAX_VALUE);
- memset(cloudData->accessToken, 0, OIC_STRING_MAX_VALUE);
+ memset(cloudData->accessToken, 0, OIC_STRING_ACCESS_TOKEN_MAX_VALUE);
g_ESCoapCloudConfResource.accessTokenType = NONE_OAUTH_TOKENTYPE;
memset(cloudData->authProvider, 0, OIC_STRING_MAX_VALUE);
memset(cloudData->ciServer, 0, OIC_STRING_MAX_VALUE);
{
OCResourceHandle handle;
char authCode[OIC_STRING_MAX_VALUE];
- char accessToken[OIC_STRING_MAX_VALUE];
+ char accessToken[OIC_STRING_ACCESS_TOKEN_MAX_VALUE];
OAUTH_TOKENTYPE accessTokenType;
char authProvider[OIC_STRING_MAX_VALUE];
char ciServer[OIC_STRING_MAX_VALUE];
-#define OIC_STRING_MAX_VALUE 256
-#define MAX_WEBLINKLEN 3
-#define NUM_WIFIMODE 10
-#define NUM_CONNECT_TYPE 3
+#define OIC_STRING_MAX_VALUE 256
+#define OIC_STRING_ACCESS_TOKEN_MAX_VALUE 1024
+#define MAX_WEBLINKLEN 3
+#define NUM_WIFIMODE 10
+#define NUM_CONNECT_TYPE 3
/**
* Attributes used to form a proper easysetup conforming JSON message.