diff options
Diffstat (limited to 'gpg.c')
-rw-r--r-- | gpg.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -64,7 +64,7 @@ int gpg_key_validate(const char *fpr) return 0; } -int gpg_decrypt(const char *fpr, const char *path, char *pass_out, size_t n) +int gpg_decrypt(const char *path, char *pass_out, size_t n) { int r; gpgme_data_t in, out; @@ -74,9 +74,6 @@ int gpg_decrypt(const char *fpr, const char *path, char *pass_out, size_t n) if (r) return r; - err = gpgme_get_key(ctx, fpr, &key, 1); - fail_if_err(err); - err = gpgme_data_new_from_file(&in, path, 1); fail_if_err(err); err = gpgme_data_new(&out); |