aboutsummaryrefslogtreecommitdiff
path: root/gpg.c
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-12-30 18:22:37 +0530
committersinanmohd <sinan@sinanmohd.com>2023-12-30 18:22:37 +0530
commit84e02a1122595bafee61b5dc4f4716b7c9146e6f (patch)
treed00920691ef674028da7b304984d27c286d11632 /gpg.c
parent45daa3e2ea35cb92b5708104ce0da24249435feb (diff)
pass/cat: gpg fingerprint is not needed
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);