Commit Graph

31 Commits

Author SHA1 Message Date
git@daemon.de
c8317a348e do only pad if ! %4 2014-07-29 13:01:14 +02:00
git@daemon.de
64eb4651f8 added missing newlines to error messages 2014-05-05 12:01:55 +02:00
TLINDEN
da9891ff81 put previously global error handling and key hashes into ptx (pcp context) to make libpcp threadsafe. 2014-05-04 17:11:03 +02:00
TLINDEN
b6dadceda3 fixed utf8 bug, which sometimes lead to z85 handling of pure binary data 2014-03-17 19:15:04 +01:00
git@daemon.de
1c068d441d check for zero sized input 2014-03-04 23:08:10 +01:00
TLINDEN
b640fe6743 fixed keysig saving (forgot the id), enhancements on cmdline 2014-03-02 18:05:45 +01:00
TLINDEN
93a9f2d307 fixed signature headers, fixed z85 string parser, it didnt properly catch END headers 2014-03-02 10:35:51 +01:00
TLINDEN
4253e1088f rewrote z85 stream decoder (again), using hyphens again. clearsig doesn't work yet, a newline problem... 2014-03-01 18:51:25 +01:00
git@daemon.de
b8552af5e9 - broken - reimplementing z85 decoder, using hyphens again, doesn't work yet... 2014-03-01 11:58:10 +01:00
git@daemon.de
fd3edfc728 fixed pcp_unpadfour() which didn't work at all (!!!) 2014-02-26 15:29:26 +01:00
TLINDEN
8b955b5e92 added -Wextra -Werror and fixed everything it had to mecker about 2014-02-25 18:05:32 +01:00
git@daemon.de
cbc45f5fa1 added is_utf8() check to _buffer_is_binary() so that utf8 comments inside z85 encoded data doesn't count as binary 2014-02-25 11:08:59 +01:00
git@daemon.de
51858aeda2 changed z85 header and comment syntax and parser 2014-02-24 16:59:04 +01:00
git@daemon.de
1afb5cc3d7 fixed annoying error in _buffer_is_binary() which returned false sometimes even when the input were in fact binary. This fixes those 2 annoying unittests which failed from time to time. 2014-02-17 17:03:55 +01:00
git@daemon.de
823fc8bbe0 added check if input is not binary 2014-02-13 15:30:23 +01:00
TLINDEN
75cdbbe835 continue to implement 4880 exports and stuff... 2014-02-13 00:06:55 +01:00
TLINDEN
f96cae9aa1 fixed bug with previously removed var definition 2014-02-10 11:39:12 +01:00
TLINDEN
ab03a10340 sanitized pcp_unpadfour(), just return the number of zero padding, leave the input pointer untouched; fixed header 2014-02-10 08:46:52 +01:00
TLINDEN
91f94a532e removed redundant code and fixed an invalid read of size 1 in ...unpadfour() 2014-02-09 17:50:00 +01:00
TLINDEN
6829ea6fbc fixed catching of header string 2014-02-09 15:49:52 +01:00
TLINDEN
83a4d0bb88 rewrote z85 decoder, uses Buffer* class now 2014-02-09 13:50:48 +01:00
TLINDEN
da8f40b596 changed padding, dont use a pad counter anymore, just add zeroes and remove them afterwards 2014-02-08 20:36:05 +01:00
TLINDEN
8f24fc88f8 changed invalid // c++ comments to valid /* .. */ C comments 2014-02-05 20:41:16 +01:00
TLINDEN
69e1d2ee47 added error checking 2013-12-19 16:54:16 +01:00
TLINDEN
4d34a9135e splitted pcp_readz85file() and added pcp_readz85string() which makes a better interface 2013-12-02 22:50:45 +01:00
TLINDEN
04dbf19381 fixed yet another endian issue (I used the wrong define for it) 2013-11-19 21:02:59 +01:00
TLINDEN
80ec5014a8 fixed z85 encoding overflow bug, fixed signature code on big-endian systems. 2013-11-19 17:17:30 +01:00
TLINDEN
da55e17ff7 fixed invalid malloc if char *z85 2013-11-16 15:13:03 +01:00
TLINDEN
0e3835bf97 added GPLv3 disclaimer to everything. 2013-11-04 17:43:22 +01:00
TLINDEN
58a3bca8d7 replaces old bzero() with memset(). 2013-10-29 23:08:43 +01:00
TLINDEN
2d7babae35 initial commit 2013-10-28 22:50:05 +01:00