Ticket #55 (defect)
Opened 4 years ago
openpgp --decrypt fails silently (creating zero-length file) when no matching secret key exists
Status: new
| Reported by: | sion | Assigned to: | sion |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | library | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
currently, running the following results in a failed decryption (foo.txt has zero bytes), but /usr/bin/openpgp returns 0 (indicating success):
mkdir /tmp/foo touch /tmp/foo/secring.gpg touch /tmp/foo/pubring.gpg openpgp --decrypt --file=foo.txt.gpg --homedir=/tmp/foo
The same behavior happens if the secring contains valid key material but foo.txt.gpg is not encrypted to any key found there.
it seems like openpgp should at least fail with an intelligible error message in this case.
--dkg
