Commit Graph

44 Commits

Author SHA1 Message Date
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
git@daemon.de
f383630e8e fixed buffer overflow with too small line buffer 2014-03-10 16:57:49 +01:00
git@daemon.de
1852a8b7f9 removed -S and -P, replaced by -K, keymgmt determines key type automatically 2014-03-04 23:05:47 +01:00
TLINDEN
0767e55e55 added -L, enhanced -E 2014-03-02 18:04:54 +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
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
TLINDEN
33d80dab29 fixed empty goto 2014-02-22 19:59:41 +01:00
TLINDEN
ab142a47b6 fixed double buffer_free() 2014-02-22 16:00:07 +01:00
TLINDEN
5e04147a35 added C pk export 2014-02-13 20:20:50 +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
7083084e4f finalized new export formats and fixed lots of bug introduced during last changes 2014-02-13 15:33:17 +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
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
b9841bfb06 continue new pk-expoert format 2014-02-08 20:35:34 +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
TLINDEN
8f24fc88f8 changed invalid // c++ comments to valid /* .. */ C comments 2014-02-05 20:41:16 +01:00
git@daemon.de
777fa01c74 fixed scrypt() call and pbp pk export signature 2014-02-03 12:19:17 +01:00
git@daemon.de
bf0e592a03 pbp key support were still incompatible. now I can at least import pbp keys. 2014-01-30 14:33:59 +01:00
git@daemon.de
a822851c14 last update was wrong, since pbp exported keys are base85 encoded, fixed that. incorporated the git/base85.c and added source padding to it 2014-01-30 13:16:26 +01:00
git@daemon.de
dbdaf38185 use a struct to fetch in a pbp key (pbp_pubkey_t) instead of manual parsing 2014-01-29 12:53:42 +01:00
TLINDEN
68d8f640e6 fixed pbp import 2014-01-28 20:05:46 +01:00
git@daemon.de
3f1bfef581 added PBP public key import/export compatibility mode (-b --pbpcompat) 2014-01-28 16:53:26 +01:00
git@daemon.de
26d4ee43c5 started to implement pbp compatibility, added support for multiple -r options,
using it now to look through the vault for recipients, -i to follow. current
state: encrypt produces output without errors or crashes; decrypt is incompatible
for the moment.
2014-01-21 16:11:04 +01:00
TLINDEN
e20a0683c6 dropped "derived key feature", pk-encryption now uses a random keypair on the sender side, puts the public part of it into the encrypted output and drops the keypair, no more key-id will be sent over the wire, be it hashed or whatelse. 2014-01-19 23:57:11 +01:00
TLINDEN
a9b2796af2 renamed 'public' to 'pub' to avoid conflict with c++ api 2013-11-29 20:01:42 +01:00
TLINDEN
314dbde0b9 finally it works on aix, at least sec/pub key stuff, signatures still hang 2013-11-19 10:06:24 +01:00
TLINDEN
c4940b966c more aix/big-endian fixes 2013-11-18 21:48:24 +01:00
TLINDEN
5e8324bb0b fixed yet another endianess problem, now always using the raw key values for export, sotrage and checksum calculation 2013-11-18 17:38:03 +01:00
TLINDEN
5a8e3ee8b0 moved all uthash related code into keyhash.c 2013-11-13 13:06:01 +01:00
git@daemon.de
a76ff60d7a added pcptext_infile(), used with pcp1 -t -I $file, which determines filetype
by content. minor debugging changes.
2013-11-12 16:58:59 +01:00
git@daemon.de
32f49b6009 added a request prompt if the user didn't enter a passphrase 2013-11-12 10:37:32 +01:00
git@daemon.de
8d9fdd091d fixed unencrypted secret key support 2013-11-12 10:26:47 +01:00
TLINDEN
1a772e15b8 added better error handling to vault writing, always use a tmp
vault file for writing. added matching unittest to check if
the code catches a disk full error.
2013-11-09 13:46:40 +01:00
TLINDEN
0e3835bf97 added GPLv3 disclaimer to everything. 2013-11-04 17:43:22 +01:00
TLINDEN
d598511a7e fixed key export: now using big endian byte order for exported
keys, so they're platform independent when transported.
2013-11-04 14:03:43 +01:00
git@daemon.de
3e4355c4e7 fixed two crashes (-k and -t under cygwin) 2013-11-03 19:38:35 +01:00
TLINDEN
a1794a4775 always use lowercase version of emailadresses. 2013-11-03 14:50:03 +01:00
TLINDEN
79068fce66 -i is now optional for encryption if recipient specified, -R exchanged with -r, added virtual env for manual tests in tests/env/ 2013-11-03 14:39:16 +01:00
TLINDEN
bf5556e1ec bugfix in encryption key computing, added new feature: derived public keys 2013-11-02 11:02:36 +01:00
TLINDEN
2d7babae35 initial commit 2013-10-28 22:50:05 +01:00