From 32030afd62e2258d9dea8e28ff706f4a91241a9a Mon Sep 17 00:00:00 2001 From: TLINDEN Date: Sun, 16 Aug 2015 21:34:39 +0200 Subject: [PATCH] fix double free, add todo --- TODO | 2 ++ tests/sample.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 9de688f..7e61874 100644 --- a/TODO +++ b/TODO @@ -20,6 +20,8 @@ Error: Invalid argument Aborted +If with -k passphrase has been retrieved interactively, ask +to proceed if low entropy. detach keysig generation from pub key export, so that an existing diff --git a/tests/sample.c b/tests/sample.c index 4ce2952..4dc0b15 100644 --- a/tests/sample.c +++ b/tests/sample.c @@ -42,7 +42,7 @@ int main() { fprintf(stderr, "Alice encrypted %"FMT_SIZE_T" bytes for Bob:\n", (SIZE_T_CAST)strlen(message)); buffer_dump(ps_buffer(crypt_out)); - /* ---- encryption don, now decrypt ---- */ + /* ---- encryption done, now decrypt ---- */ /* prepare the output buffer stream */ clear_out = ps_new_outbuffer(); @@ -52,6 +52,8 @@ int main() { omitted when using a Vault. */ pcphash_add(ptx, alicepub, alicepub->type); + buffer_info(crypt_out->b); + /* try to decrypt the message */ if(pcp_decrypt_stream(ptx, crypt_out, clear_out, bob, NULL, 0, 0) == 0) fatals_ifany(ptx); @@ -68,7 +70,6 @@ int main() { ptx_clean(ptx); free(alice); - free(alicepub); free(bob); free(bobpub);