1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 23:41:18 +01:00
Marian Buschsieweke 590ca5d7ff
sys/net/gcoap: get rid of API abuse
Calling `coap_get_token()` and `coap_get_token_length()` on an
(mostly) uninitialized `coap_pkt_t` did work so far due to
implementation details matching the expectations, but this is not
backed up by any API contract.

This fixes the API abuse by introducing and using a new API that does
read a token and token length from a CoAP over UDP packet out of a
buffer. This now provides the behavior expected by the caller and
commits to it via API contract.

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
Co-authored-by: benpicco <benpicco@googlemail.com>
2025-01-10 21:31:08 +01:00
..
2020-11-23 16:56:34 +01:00
2021-08-13 19:50:38 +02:00
2025-01-03 10:05:46 +01:00
2022-04-14 09:23:27 +02:00
2024-03-21 14:26:45 +01:00
2022-09-14 15:05:25 +02:00
2021-08-13 19:50:38 +02:00
2023-02-22 16:47:14 +01:00
2024-07-15 11:25:30 +02:00
2021-08-13 19:50:38 +02:00
2023-05-31 16:31:20 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2023-06-12 13:54:06 +02:00
2025-01-10 21:31:08 +01:00
2021-06-18 00:13:08 +02:00
2023-12-15 16:50:21 +01:00
2021-07-05 10:32:50 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2022-09-14 15:05:25 +02:00
2021-07-08 09:40:02 +02:00
2020-11-09 11:45:28 +01:00
2023-08-19 23:23:10 +02:00