-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not decrypting after upgrade to GnuPG 2.3.4 #121
Comments
Thanks for the report. I'll have to test it out and see what's going on. |
Did some bisecting and the problem started with gnupg commit ce2f71760155b71a71418fe145a557c99bd52290. Before that commit, the output looks like:
but after it's just:
|
Actually, your initial report said you weren't getting any output other than the warning? What if you run |
Yes, I looked at the source for vim-gnupg and determined the exact gpg command it ran, and then I ran it myself, both on my recently updated Fedora 35 machine, and a Fedora 34 machine. If I remember correctly, the command I ran was very similar to the one you suggested. I seem to recall adding --dry-run, but other than that I think it was the same. On Fedora 35 there was nothing; on Fedora 34 it produced the expected output. I then tried adding a second --verbose. Then gpg did produce output, but not the output that was needed. I use vim-gnupg on a daily basis, so I needed a work-around. I found that using "gpg --list-packets" got me what I need to support asymmetric encryption, and then I hacked vim-gnupg to make it work, but its ugly. This feel like a mistake in gpg. It seems like they did not provide a standard way to determine the important parameters for an encrypted file that are needed when re-encrypting, and so you used what you could find. Then they made an innocent change that broke your code. I figured it would be best if you worked with the gpg folks directly to get them to officially support an interface that provides the interface you need. |
One more thing. The behavior I am seeing is a little different from what you are seeing. When I run If I remove the log-file setting from my gpg.conf file I get the following:
|
This is the relevant information. :) All I need is the |
I've opened https://dev.gnupg.org/T5849. |
A simple work around and an eventual solution. Excellent. Thanks! |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Hi @jamessan and @KenKundert |
I just upgraded to Fedora35, which presumably upgrades both Vim and GnuPG, but I believe the issue is with GnuPG. Now when I try to open an encrypted file with
vim
,vim -v
, orgvim
, the content of the encrypted file is not decrypted. If I turn on debugging, I see:Upgrading vim-gnupg to the most recent version in GitHub does not help.
If I run that same gpg command from a shell I see:
Notice that the expected output is missing. There is just the warning. Eliminating the
--no-use-agent
option gets rid of the warning, but the expected output is still missing.I am at a loss at this point. I played around with the command line options some, but cannot figure out how to get gpg2 to generate the expected output.
I would appreciate any insight or help you can offer.
Oh, and thanks for writing and supporting this plugin. I find it use it all the time and love it.
The text was updated successfully, but these errors were encountered: