diff options
author | sinanmohd <sinan@sinanmohd.com> | 2023-12-30 18:22:37 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2023-12-30 18:22:37 +0530 |
commit | 84e02a1122595bafee61b5dc4f4716b7c9146e6f (patch) | |
tree | d00920691ef674028da7b304984d27c286d11632 /gpg.c | |
parent | 45daa3e2ea35cb92b5708104ce0da24249435feb (diff) |
pass/cat: gpg fingerprint is not needed
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); |