Commit Graph

172 Commits

Author SHA1 Message Date
TLINDEN
3d2cdb8b89 updated manpage and usage 2014-03-02 22:01:03 +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
0d86dee4ee fixed doc 2014-02-27 13:57:24 +01:00
git@daemon.de
97f4d14d3b finally fixed all stream related problems, z85 transparent en/decoding works, unittests all ok. 2014-02-27 13:55:43 +01:00
git@daemon.de
c11ce76d21 fixed ps_eof(): consider cache. fixed ps_read_cached() which didn't work under certain circumstances (blocksize < readbytes and such) 2014-02-26 15:32:46 +01:00
git@daemon.de
504ff55a00 added buffer_get_chunk_tobuf() which copies some chunk from one buffer to the other without a temporary variable 2014-02-26 15:27:53 +01:00
TLINDEN
0069d6ea29 yet another pcpstream problem noted 2014-02-25 19:52:59 +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
21b0ea38db fixed doc 2014-02-25 14:32:44 +01:00
git@daemon.de
3b1db06529 changed all occurrences of unsigned char to byte (defined in defines.h) to make the code more precise about sizes. 2014-02-25 11:09:58 +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
TLINDEN
9a5c8a3547 added doc 2014-02-23 11:04:15 +01:00
TLINDEN
272f7b3dfb added ps_finish() to write the remainder out (if any), split writing into a couple of helpers 2014-02-22 19:58:56 +01:00
TLINDEN
cfb8207ac2 added automatically z85 encoding/decoding (again, but this time better) 2014-02-22 14:52:32 +01:00
TLINDEN
fe1ea9cb76 Revert "rm html stuff from repo, changes too often. enhanced pcpstream"
This reverts commit 82b05b768e.
2014-02-21 20:35:10 +01:00
git@daemon.de
82b05b768e rm html stuff from repo, changes too often. enhanced pcpstream 2014-02-21 19:56:01 +01:00
TLINDEN
30481fed9a added Pcpstream example 2014-02-20 21:02:52 +01:00
TLINDEN
2e4657bb08 added api docs 2014-02-20 20:09:24 +01:00
git@daemon.de
08bc0bc8bf updated api docs. 2014-02-20 15:36:49 +01:00
git@daemon.de
f13f60bfc2 added buffer_new_buf() which makes it possible to back a Buffer with an existing pointer without copying 2014-02-20 15:36:12 +01:00
git@daemon.de
51e3cec60d api doc updated 2014-02-19 20:39:19 +01:00
TLINDEN
080482d1cd more api docs 2014-02-17 19:37:26 +01:00
git@daemon.de
be867bdc26 started documenting the api. 2014-02-17 17:05:32 +01:00
TLINDEN
1342fa2b45 fixes and stuff 2014-02-15 17:39:51 +01:00
TLINDEN
cf8402aec0 added pcpstream usage to signature lib code as well 2014-02-15 17:39:16 +01:00
TLINDEN
e78269fceb added pcpstream, which wraps buffers or file i/o, so crypto code doesn't have to know if it works with a file or a buffer. makes the api much more flexible 2014-02-15 13:10:51 +01:00
TLINDEN
347f155341 catch up with api and system changes in libpcp. added c++ buffer class as well 2014-02-14 16:40:09 +01:00
TLINDEN
604006994f added C pk export 2014-02-13 20:20:07 +01:00
TLINDEN
01cf82b2df fixed segfault when fatals_ifany() called multiple times 2014-02-13 20:19:32 +01:00
git@daemon.de
7408ebd90c added yaml and perl pubkey export formats (c and python will follow) 2014-02-13 17:05:22 +01:00
git@daemon.de
1c46de629b added string buffer support 2014-02-13 17:04:59 +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
git@daemon.de
621cece568 changed secret key export format, now we encrypt the whole thing, and we use an extra passphrase to do so. import wrapper in src/ not implemented yet. 2014-02-12 16:47:24 +01:00
git@daemon.de
a78dd9c6eb added buffer_get_remainder() so I can fetch whatever is left in the buffer 2014-02-12 16:46:50 +01:00
git@daemon.de
f849f506cc put keysig stuff into extra source 2014-02-12 16:46:11 +01:00
TLINDEN
6d738ccbf8 changed public key export format to (slightly modified) RFC4880 style (openpgp format).
Current state is totally unstable, it's not yet ready.
2014-02-12 00:37:41 +01:00
TLINDEN
efdf2987ae moved the actual public key export code out into the lib (mgmt.c). cmdline client does only armor the blobs, if neccessary. Also, armored pubkey exports don't contain any comments anymore. 2014-02-10 11:37:42 +01:00
TLINDEN
79392eb6c7 (re-)added ucfree() which does memset(0) and free() afterwards 2014-02-10 11:36:50 +01:00
TLINDEN
a3468a45cf changed internal key format again, now we've got a master-key-signing keypair as well, used for exports. also, fixed a security hole in pcp_keynew(): the actual key material, unencrypted, have been stored on heap and not zeroed after exit. 2014-02-10 11:34:05 +01:00
TLINDEN
b5e8e0de03 enhanced a little 2014-02-10 11:33:20 +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
118428da45 fixed autogen script, didnt include config.h into pcp.h 2014-02-09 17:49:33 +01:00
TLINDEN
6829ea6fbc fixed catching of header string 2014-02-09 15:49:52 +01:00
TLINDEN
ce73950920 added buffer_get_str() which allows to retrieve buffer contents as char * 2014-02-09 13:51:35 +01:00
TLINDEN
83a4d0bb88 rewrote z85 decoder, uses Buffer* class now 2014-02-09 13:50:48 +01:00