1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib/jose/jwe
Andy Green af26f0c765 lejp: correct return temp type to int
lejp_parse() return type is an int... but in the function, the temp
for it is a char.  This leads to badness that is currently worked
around by casting the return through a signed char type.

But that leads to more badness since if there's >127 bytes of buffer
left after the end of the JSON object, we misreport it.

Bite the bullet and fix the temp type, and fix up all the guys
who were working around it at the caller return casting to use the
resulting straight int.

If you are using this api, remove any casting you may have cut-
and-pasted like this

n = (int)(signed char)lejp_parse(...);

... to just be like this...

n = lejp_parse(...);
2020-05-11 15:17:14 +01:00
..
enc gencrypto: windows: warnings 2020-04-12 08:39:27 +01:00
jwe-ecdh-es-aeskw.c gencrypto: windows: warnings 2020-04-12 08:39:27 +01:00
jwe-rsa-aescbc.c gencrypto: windows: warnings 2020-04-12 08:39:27 +01:00
jwe-rsa-aesgcm.c lws_get_random: change length to size_t for coverity 2020-01-11 07:58:37 +00:00
jwe.c lejp: correct return temp type to int 2020-05-11 15:17:14 +01:00
private-lib-jose-jwe.h private.h: rename to contain dir 2019-08-15 10:49:52 +01:00