I have invoked the program in the following way: /root/gpgme-1.3.2/tests/run-sign.o --key FPR_ID_OF_KEY samplefile
Thanks! M. -----Original Message----- From: Werner Koch [mailto:w...@gnupg.org] Sent: Wednesday, October 31, 2012 12:52 PM To: Mojtaba Gharibi Cc: gnupg-users@gnupg.org Subject: Re: How to clear gpgme passphrase cache or enter the passphrase every time? On Wed, 31 Oct 2012 16:36, mghar...@evertz.com said: > I am using the following test program shipped with GPGME to sign a > document. You don't need to paste the program, just the version of gpgme is sufficient. > However, the program never asks for my passphrase. Based on the error > message, I suspect it has cached some wrong passphrase. So I either need GPGME does not cache any passphrases. That is the task of gpg-agent. > run-sign: signing failed: Bad passphrase It would be useful to see how you invoked the program what version of GPGME, GnuPG, and what OS you are using. Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users