diff options
Diffstat (limited to 'src/gpg.c')
-rw-r--r-- | src/gpg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -145,9 +145,9 @@ gpgme_key_t* gpg_keyids_to_key_t(gpgme_ctx_t ctx, char** keyids) { return out; } - void gpg_keyids_release(char** keyids) { int i = 0; + while(keyids[i] != NULL) { free(keyids[i]); i++; @@ -156,6 +156,7 @@ void gpg_keyids_release(char** keyids) { } + void gpg_dump_key(gpgme_key_t key) { printf("Recipient: %s\n", key->fpr); printf(" protocol: %d\n", key->protocol); @@ -236,7 +237,6 @@ size_t gpg_encrypt_file(char* infile, char* outfile, char** keyids) { fclose(refd); // cleanup - gpg_keyids_release(keyids); gpgme_data_release(indata); gpgme_data_release(outdata); gpgme_release(ctx); |