Johan Hedberg
3a7f9049c0
gobex: Fix decoding byte array headers with too small length
...
Length values of less than 3 are invalid.
2012-12-04 22:22:03 +01:00
Jakub Adamek
f264b1c744
gobex: Fix encoding of empty unicode headers
...
According to IrOBEX:
"An empty Name header is defined as a Name header of length 3 (one byte
opcode + two byte length)."
The current code encodes an empty header with 5 bytes, including two
bytes of null-terminator.
This patch assumes that this definition of emptiness applies to all
unicode headers, not just the name header.
2012-12-04 22:22:02 +01:00
Johan Hedberg
58cd14d209
gobex: Remove _ID_ from header type definitions
2012-12-04 22:22:01 +01:00
Johan Hedberg
f5d10bf7cb
gobex: Remove unneeded data_policy from g_obex_header_new_bytes
2012-12-04 22:22:01 +01:00
Johan Hedberg
0a4824ddb1
gobex: Make on-demand body headers a GObexPacket feature
2012-12-04 22:21:59 +01:00
Johan Hedberg
714abdfc72
gobex: Make on-demand header callbacks able to fail cleanly
2012-12-04 22:21:59 +01:00
Johan Hedberg
ad811dd51e
gobex: Add support for on-demand headers
2012-12-04 22:21:58 +01:00
Johan Hedberg
a8f0a73b48
gobex: Add invalid header data decoding tests
2012-12-04 22:21:57 +01:00
Johan Hedberg
aa1b87b6d8
gobex: Add initial GError support
2012-12-04 22:21:57 +01:00
Johan Hedberg
d455694af2
gobex: Split unit tests into separate modules
2012-12-04 22:21:57 +01:00