43 Commits (cecb514e25b4addf982e0a399202517eb4e53ee8)

Author SHA1 Message Date
Felix von Leitner 2837d39ba6 much shorter way to do the same thing 9 years ago
Felix von Leitner 6a4ceca9c0 for asn1derlength: save a few bytes
for asn1dertag: catch too-large-value overflow
9 years ago
Felix von Leitner c90a757f45 reject non-minimally encoded ASN.1 DER data
split scan_asn1derlength into scan_asn1derlength and scan_asn1derlengthvalue
9 years ago
Felix von Leitner 4ab5705eec fix typo in man page
make use of __uint128_t in scan_ulongn and provide long long based
implementation for 32-bit platforms
9 years ago
Felix von Leitner 69e6c3c6c6 add buffer_tosa check to marshal.c
failed attempt to improve scan_ulongn, results in essentially same code
but the C code looks slighly better so I'm keeping it
9 years ago
Felix von Leitner 20d899eb7e remove can't happen code and instead force a compile time error 9 years ago
Felix von Leitner f68ede8333 improved code path for typical platforms where there is a wider integer type 9 years ago
Felix von Leitner 1d50536829 catch other potential overflow 9 years ago
Felix von Leitner d74fc233fc get rid of more -Wconversion warnings 9 years ago
Felix von Leitner 6e36286b34 get rid of -Wconversion warnings 9 years ago
Felix von Leitner ddec9f403a remove -Wconversion warnings 9 years ago
Felix von Leitner 823f052cbd scan_*longlong now properly abort if the number would not fit 9 years ago
Felix von Leitner 826abd7560 do proper early abort in the other scan_* routines if the numeric value
is too large
9 years ago
Felix von Leitner 0482a9ec04 add json encoding routines to textcode 9 years ago
Felix von Leitner 91b2116a38 add scan_netstring 10 years ago
Felix von Leitner 825f9ee219 add scan_ulongn, scan_8longn, scan_xlongn and scan_longn 10 years ago
Felix von Leitner 28180795a9 add more examples 10 years ago
Felix von Leitner babeb35b1f catch more bad encoding 11 years ago
Felix von Leitner cf46170dc7 make headers work in C++
add two more variable length integer encoding functions
11 years ago
Felix von Leitner 24c6e42b3c add functions to encode and decode integers in variable length binary
formats
11 years ago
Felix von Leitner 30dd022a6e work around broken sqlite download httpd 15 years ago
Felix von Leitner fe4fef2e65 slight optimization 16 years ago
Felix von Leitner 0698149baf switch to size_t and ssize_t 17 years ago
Felix von Leitner 071df9ee4a make socket_(tc|ud)p[46] actually return non-blocking sockets as
documented (Richard Lyons)
17 years ago
Felix von Leitner 8b2036b21e IRIX compatibility (yuck!) 18 years ago
Felix von Leitner e5c56dc6b0 remove even more warnings
64-bit cleanliness issue with auto-NULL-appending macros
18 years ago
Felix von Leitner 513ee82192 fix scan_xlong, scan_xlonglong and scan_8long 18 years ago
Felix von Leitner 0b2ec6da99 make sure scan_httpdate uses GMT for mktime 18 years ago
Felix von Leitner cc8b30ba1d add a few man pages 20 years ago
Felix von Leitner 640edc1651 remove special case stralloc textcode functions
write generic stralloc and array textcode wrapper functions
change textcode API to use long instead of int
add cescape fmt and scan functions to textcode
add fmt_foldwhitespace to textcode
20 years ago
Felix von Leitner ec9299ff57 only write dest if we actually parsed something 20 years ago
Felix von Leitner c4b0574495 change length or size specifiers in APIs from int to long
add array API (http://cr.yp.to/lib/array.html)
20 years ago
Felix von Leitner 271d97d5c9 scan_uint and scan_ushort will now abort if the result does not fit in
uint or ushort as opposed to ulong.
20 years ago
Felix von Leitner 1c8392ab3e improve range check 20 years ago
Felix von Leitner 733c2fbfbd add man page for scan_longlong 20 years ago
Felix von Leitner 3c467361fd add long long scanning support 20 years ago
Felix von Leitner 7f380d9e13 add beginnings of integer range checking 20 years ago
Felix von Leitner bfe8319361 add scan_httpdate 20 years ago
Felix von Leitner 15f0153c25 a few more man pages 21 years ago
Felix von Leitner 10f26fd5bc add some man pages 21 years ago
Felix von Leitner 0938bbe2aa bug fixes 22 years ago
Felix von Leitner 28f2b90b1c this time for real ;) 22 years ago
Felix von Leitner 28486b8367 Initial revision 23 years ago