Commit Graph

48 Commits

Author SHA1 Message Date
Thomas von Dein
48947064bf fixed missing free() errors 2016-10-25 22:07:08 +02:00
Thomas von Dein
b8008d1207 removed endian conversion code, now we just write in big-endian on output with shifts, not swaps etc 2016-10-20 23:14:14 +02:00
git@daemon.de
28981bdbb1 better error handling for sscanf output in pbp import 2016-10-05 13:34:49 +02:00
git@daemon.de
e953979ef6 get rid of strptime 2016-10-05 12:26:21 +02:00
TLINDEN
671352bc29 unfortunately my tab/spc config was wrong for a couple of years. fixed all tabs=>spaces+re-indent 2016-05-09 22:24:13 +02:00
TLINDEN
935e28dff6 fix #15: dont free localtime() returned pointer 2015-11-15 16:35:56 +01:00
git@daemon.de
3a8d8c010f fixed memory leak during decrypt, reported in #10 2015-10-12 12:17:51 +02:00
TLINDEN
bbdda67a6e using constant time memcmp by C.Meessen 2015-08-27 11:19:24 +02:00
git@daemon.de
1b7681ee83 fix format for json int values 2015-08-24 20:31:04 +02:00
git@daemon.de
44347793c1 rm printf 2015-08-24 20:14:54 +02:00
git@daemon.de
79874d5915 using json_int_t for uint32_ts json import 2015-08-24 16:31:18 +02:00
TLINDEN
c363dce7de using libsodiums size constants everywhere (keysizes and the likes) 2015-08-15 20:38:33 +02:00
TLINDEN
0eb7de0921 fixed json secret key export (now export the whole encrypted blob, since only that blob is being used to parse the key). added support to import json secret keys 2015-07-09 18:38:27 +02:00
TLINDEN
2d3fc9d8e3 added json pubkey import 2015-07-08 23:53:11 +02:00
git@daemon.de
e508616812 re-added pcp_import_pub(), still in use by cpp api 2015-07-08 12:00:43 +02:00
TLINDEN
579715f560 added full json support for -p, -s, -t and -K (though only pubs for the latter at the moment) 2015-07-08 01:24:25 +02:00
git@daemon.de
6ce39a21d8 fixed compile error (unused var) 2015-07-07 09:46:23 +02:00
TLINDEN
57517a1000 abandoned yaml, perl and c key exporters, added json exporter using libjansson, enable with --with-json 2015-07-06 23:02:04 +02:00
git@daemon.de
0dbf5df943 added checks to avoid overflows caused by user supplied field sizes 2015-06-26 11:13:03 +02:00
TLINDEN
177ad8a8f2 more debuggin...2 2015-04-17 13:32:48 +02:00
TLINDEN
8c024afad9 more debuggin... 2015-04-17 13:22:34 +02:00
TLINDEN
63539612ca debug sec key import 2015-04-17 13:06:01 +02:00
TLINDEN
ce7e1c378a fixed double free of buffer blob in pcp_import_pub_pbp 2015-04-17 11:41:43 +02:00
TLINDEN
3c30d8871b using secure memory where applicable using sodium_malloc or sodium_mlock, where not 2015-01-13 13:07:32 +01:00
TLINDEN
85db8c664c fixed glibc deprecated _BSD_SOURCE 2014-12-19 20:31:55 +01:00
TLINDEN
019df8e4c5 fixed memory leaks 2014-08-07 21:33:52 +02:00
TLINDEN
9672785271 fixed memory leaks 2014-08-07 00:02:43 +02:00
git@daemon.de
5b4d04de5d fixed memory leaks 2014-08-06 20:19:50 +02:00
TLINDEN
c66c7ae15c added own file type for crypt+sign, now signing the encrypted result, not the clear message.
using 64bit integers for time vars in key ex/im_ports
2014-05-06 11:50:28 +02:00
git@daemon.de
e11c295b42 fixed integer overflows when importing keys with invalid header sizes (or invalid headers, that is) 2014-05-05 11:59:54 +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
b3851f62e8 revert mode changes made by windows devel system (sic) 2014-03-17 17:20:29 +01:00
scip
a1cfe16c3c (back) ported win32 32bit compatibility along with lots of fixes 2014-03-15 17:26:42 +01:00
git@daemon.de
3594a53cd5 fixed invalid malloc (notation size, missed trailing zero) 2014-03-10 17:03:27 +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
b640fe6743 fixed keysig saving (forgot the id), enhancements on cmdline 2014-03-02 18:05:45 +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
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
TLINDEN
604006994f added C pk export 2014-02-13 20:20:07 +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
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