Commit Graph

503 Commits

Author SHA1 Message Date
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
ec192131af done a lot 2014-02-13 20:22:17 +01:00
TLINDEN
fdbb1efd0d updated to -F 2014-02-13 20:22:02 +01:00
TLINDEN
db47cbd95a fixed pbp encryption fix, no more size field in reclist 2014-02-13 20:21:32 +01:00
TLINDEN
738be64a79 fix err output 2014-02-13 20:21:05 +01:00
TLINDEN
5e04147a35 added C pk export 2014-02-13 20:20:50 +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
a3aa740dd0 quote fix 2014-02-13 18:26:16 +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
0a8206b3b0 update to new formats 2014-02-13 15:33:51 +01:00
git@daemon.de
7083084e4f finalized new export formats and fixed lots of bug introduced during last changes 2014-02-13 15:33:17 +01:00
git@daemon.de
f8740cec68 generate keyid from pubs only, dont clear supplied passphrase (done in src) 2014-02-13 15:32:27 +01:00
git@daemon.de
3b5b04c069 fixed free() order for keysigs 2014-02-13 15:31:42 +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
bf2500b335 updated unittests 2014-02-13 00:06:36 +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
c9e236db20 added -F parameter (-F pbp or -F pcp, the latter being the default), which can be used to specify the key export format 2014-02-10 11:39:43 +01:00
TLINDEN
f96cae9aa1 fixed bug with previously removed var definition 2014-02-10 11:39:12 +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
57bcd9325b done 2014-02-10 11:33:00 +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
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
TLINDEN
82883d92ac oops 2014-02-08 20:37:33 +01:00
TLINDEN
5bbe95f6fe re-generated unittests check files due changed z85 padding 2014-02-08 20:36:40 +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
b9841bfb06 continue new pk-expoert format 2014-02-08 20:35:34 +01:00
TLINDEN
8b19871046 even more open things... 2014-02-08 20:34:30 +01:00
TLINDEN
2d7a0d834c started with experimental pk export writer 2014-02-07 20:07:30 +01:00
git@daemon.de
607f2be281 fixed missing newlines 2014-02-07 16:59:12 +01:00
git@daemon.de
5161e15c69 added Buffer "class" based on openssh/buffer.c, which is a really beautiful idea. I'll use this for file i/o and data handling 2014-02-07 16:58:02 +01:00
git@daemon.de
cb873e3681 started with formalized key export format definition based on rfc4880 2014-02-07 16:56:57 +01:00
git@daemon.de
f94a9da803 added ucrealloc() 2014-02-07 16:55:56 +01:00
git@daemon.de
e107759f5b fixed spaces 2014-02-07 12:02:51 +01:00
git@daemon.de
7f4bccfaff updated pod 2014-02-07 11:55:44 +01:00
TLINDEN
181c5ddac4 finally fixed asymmetric encryption pbp<=>pcp, it now works 2014-02-06 20:09:55 +01:00
git@daemon.de
7d715ba880 finally got pbp key export/import to work. in order to make it happen, pbp needs to be patched (see pbp issue#10 for details!) to enable padding. 2014-02-06 16:30:50 +01:00
git@daemon.de
d1d169b1fc updated format descriptions to be more formal and reproducible 2014-02-06 11:26:45 +01:00