You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Token management in LwM2M library should be improved, as currently, it has its limitations.
If token with 0 length is provided, it's implicitly assumed that it should be autogenerated. It won't work in case the LwM2M server sends a request w/o token. Plus the token generation doesn't seem right (token won't be included anyway as tokenlen is kept 0):
Improve token handling by removing special meaning of tokenlen == 0,
which allows to handle server requests w/o a token (so far such
requests would cause the lwm2m engine to autogenerate token in the
response).
In order to autogenerate token during message initialization, use
special symbol `LWM2M_MSG_TOKEN_GENERATE_NEW`. If no token is wished to
be used, simply set the tokenlen to 0.
Additionally, fix an issue with token autogeneration, where invalid
token len was used (0 instead of 8).
Fixeszephyrproject-rtos#28299
Signed-off-by: Robert Lubos <[email protected]>
Improve token handling by removing special meaning of tokenlen == 0,
which allows to handle server requests w/o a token (so far such
requests would cause the lwm2m engine to autogenerate token in the
response).
In order to autogenerate token during message initialization, use
special symbol `LWM2M_MSG_TOKEN_GENERATE_NEW`. If no token is wished to
be used, simply set the tokenlen to 0.
Additionally, fix an issue with token autogeneration, where invalid
token len was used (0 instead of 8).
Fixes#28299
Signed-off-by: Robert Lubos <[email protected]>
Token management in LwM2M library should be improved, as currently, it has its limitations.
If token with 0 length is provided, it's implicitly assumed that it should be autogenerated. It won't work in case the LwM2M server sends a request w/o token. Plus the token generation doesn't seem right (token won't be included anyway as
tokenlen
is kept 0):The text was updated successfully, but these errors were encountered: