>>>>> In >>>>> Daiki Ueno wrote: > > Maybe you can finish this code, and I can debug why it doesn't work > > for a smartcard separately. It is probably not an important feature. > The new code mostly finished. Ok, the attached file is (hopefully) the final version of the new code. Differences from the previous one are: - Passphrase caching now works again. - pgg-gpg-use-agent is abolished. Add "use-agent" to ~/.gnupg/gpg.conf if you want to enable use of gpg-agent, as Miles said. - Tested with typical cases. I also attach some test cases I used.