Commit a4e3b9ae authored by Jaehong Jo's avatar Jaehong Jo Committed by Uze Choi

Change Access Token Max Value

The access token can have a long value.
So length changed from the existing 64 to 1024.

Change-Id: Id03b4c86d78cdfa1108fee5c6029f286704894c4
Signed-off-by: default avatarJaehong Jo <jaehong.jo@samsung.com>
parent e93267fb
......@@ -64,11 +64,11 @@ typedef struct
*/
typedef struct
{
char accessToken[OIC_STRING_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_URI_STRING_MAX_VALUE]; /*!< Cloud interface server URL which an Enrollee is going to registered **/
void *userdata; /*!< Vender-specific data**/
char accessToken[OIC_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_URI_STRING_MAX_VALUE]; /*!< Cloud interface server URL which an Enrollee is going to registered **/
void *userdata; /*!< Vender-specific data**/
} ESCoapCloudConfData;
/**
......
......@@ -733,7 +733,7 @@ void updateCoapCloudConfResource(OCRepPayload* input)
return;
}
memset(cloudData->accessToken, 0, OIC_STRING_MAX_VALUE);
memset(cloudData->accessToken, 0, OIC_ACCESS_TOKEN_MAX_VALUE);
cloudData->accessTokenType = NONE_OAUTH_TOKENTYPE;
memset(cloudData->authProvider, 0, OIC_STRING_MAX_VALUE);
memset(cloudData->ciServer, 0, OIC_URI_STRING_MAX_VALUE);
......
......@@ -73,10 +73,10 @@ typedef struct
/** CoAP Cloud Configuration Resource */
typedef struct
{
OCResourceHandle handle; /*!< resource handle */
char accessToken[OIC_STRING_MAX_VALUE]; /*!< access token */
OAUTH_TOKENTYPE accessTokenType; /*!< access token type */
char authProvider[OIC_STRING_MAX_VALUE]; /*!< auth provider */
OCResourceHandle handle; /*!< resource handle */
char accessToken[OIC_ACCESS_TOKEN_MAX_VALUE]; /*!< access token */
OAUTH_TOKENTYPE accessTokenType; /*!< access token type */
char authProvider[OIC_STRING_MAX_VALUE]; /*!< auth provider */
char ciServer[OIC_URI_STRING_MAX_VALUE];
} CoapCloudConfResource;
......
......@@ -35,6 +35,7 @@ extern "C"
#define OC_RSRVD_ES_RES_TYPE "rt" /*!< Resource type */
#define OIC_STRING_MAX_VALUE 64 /*!< OIC string max value */
#define OIC_ACCESS_TOKEN_MAX_VALUE 1024 /*!< Access Token max value */
#define OIC_URI_STRING_MAX_VALUE 256 /*!< OIC uri string max value */
#define MAX_WEBLINKLEN 3 /*!< Wenlink length */
#define NUM_WIFIMODE 10 /*!< Supported wifi mode */
......
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