Skip to content
Commit 9f60075d authored by Benjamin Lemouzy's avatar Benjamin Lemouzy Committed by Anas Nashif
Browse files

jwt: remove jwt_payload_len function



The function jwt_payload_len doesn't return payload length but returns
used data in builder->buf

If jwt_payload_len is called after jwt_init_builder, header length will
be returned
If jwt_payload_len is called after jwt_add_payload, header+payload
length will be returned
If jwt_payload_len is called after jwt_sign, header+payload+sign length
will be returned

So, this commit removes the function and uses strlen instead

Signed-off-by: default avatarBenjamin Lemouzy <blemouzy@centralp.fr>
parent 64ecbea5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment