Files
libstrophe-gh-mirror/tests
Steffen Jaeckel e7b08faaa7 Clean up SM state serialization
* Refactor `xmpp_sm_state_restore()`

Add new internal functions to load u32 and string values. This also brings
length checks in order to verify we don't read more sm_state than there
potentially is and type checks to ensure we have the correct CBOR types.

Each element is added to the queue right after creation, so it won't leak
in case creating its content fails.

* Refactor `sm_state_serialize()`

* Store & restore ints as/from big endian, CBOR requires that

* Bring API names in line with the usual naming

* Auto-format sources

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-11-19 16:26:50 +01:00
..
2023-08-09 15:51:50 +02:00
2023-08-09 15:51:50 +02:00
2023-08-25 18:08:42 +02:00
2023-08-09 15:51:50 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2022-03-09 12:08:15 +01:00
2022-03-09 12:08:15 +01:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-11-01 01:40:45 +01:00
2020-03-31 17:37:12 +03:00
2020-04-30 12:03:57 +02:00
2020-03-31 17:37:12 +03:00
2023-08-25 18:08:42 +02:00
2024-02-12 17:47:24 +01:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-08-25 18:08:42 +02:00
2023-11-01 01:40:45 +01:00