1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21: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
..
2023-01-13 13:58:07 +01:00
2022-09-14 15:05:25 +02:00
2023-04-26 00:53:14 +02:00
2025-01-10 21:31:08 +01:00
2023-02-23 16:44:24 +01:00
2022-09-14 15:05:25 +02:00
2024-01-17 16:05:12 +01:00
2023-01-13 13:58:07 +01:00
2024-11-13 16:01:34 +01:00
2024-10-18 13:14:04 +02:00
2024-12-12 14:28:28 +01:00
2022-12-19 13:03:45 +01:00
2023-06-05 19:09:11 +02:00
2023-01-13 13:58:07 +01:00
2022-11-22 13:39:35 +01:00
2023-05-26 15:04:36 +02:00
2024-02-09 15:24:22 +01:00
2023-05-31 12:55:53 +02:00
2023-08-08 09:09:12 +02:00
2024-05-15 11:20:38 +02:00
2024-06-07 12:05:43 +02:00