aboutsummaryrefslogtreecommitdiff
path: root/gpg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpg.c')
-rw-r--r--gpg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gpg.c b/gpg.c
index 3d37c09..8daeb3c 100644
--- a/gpg.c
+++ b/gpg.c
@@ -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);