From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sascha Wilde Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: pgg-gpg broken? Date: Thu, 06 Apr 2006 11:00:25 +0200 Message-ID: References: <2cd46e7f0510031250u66ea1349yb437d539ce4027ef@mail.gmail.com> <2cd46e7f0510081131h14e2bbeaga7f1a33ebd6347c8@mail.gmail.com> <2cd46e7f0510101415t76825ea7u9749fe23da54ce@mail.gmail.com> <2cd46e7f0510121647x3c51fb65pc883ed61f4e864ab@mail.gmail.com> <2cd46e7f0510200708x4640d1c2t50743cf439e52dd4@mail.gmail.com> <87pskfq361.fsf@latte.josefsson.org> <877j6mg2af.fsf@latte.josefsson.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144314069 17421 80.91.229.2 (6 Apr 2006 09:01:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Apr 2006 09:01:09 +0000 (UTC) Cc: emacs-devel@gnu.org, ding@gnus.org, Simon Josefsson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 06 11:01:05 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FRQMN-0006Cd-Sg for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2006 11:01:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRQMN-0007gl-6m for ged-emacs-devel@m.gmane.org; Thu, 06 Apr 2006 05:00:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FRQM8-0007ge-Pb for emacs-devel@gnu.org; Thu, 06 Apr 2006 05:00:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FRQM7-0007gH-AM for emacs-devel@gnu.org; Thu, 06 Apr 2006 05:00:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRQM7-0007gD-5v for emacs-devel@gnu.org; Thu, 06 Apr 2006 05:00:43 -0400 Original-Received: from [62.141.58.119] (helo=km1136.keymachine.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FRQPn-0004xv-Q1 for emacs-devel@gnu.org; Thu, 06 Apr 2006 05:04:32 -0400 Original-Received: from kenny.sha-bang.de (xdslj117.osnanet.de [212.95.110.117]) (authenticated bits=0) by km1136.keymachine.de (8.12.11/8.12.10) with ESMTP id k3690OaL027654; Thu, 6 Apr 2006 11:00:24 +0200 Original-Received: from wilde by kenny.sha-bang.de with local (Kenny MUA v.0409034.42) ID 1FRQLp-00047g-GU; Thu, 06 Apr 2006 11:00:25 +0200 Original-To: Daiki Ueno In-Reply-To: (Daiki Ueno's message of "Thu, 06 Apr 2006 06:33:26 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52466 gmane.emacs.gnus.general:62541 Archived-At: Daiki Ueno wrote: >>>>>> In >>>>>> Sascha Wilde wrote: >> Daiki Ueno wrote: > >> >>>>>> In >> >>>>>> Sascha Wilde wrote: >> >> I just needed to decrypt an old Mail using Gnus/pgg (which i decrypted >> >> successfully many times before), but it failed. >> > >> >> This is the backtrace I get: >> > >> >> Debugger entered--Lisp error: (error "Process pgg-gpg not running") >> >> process-send-string(# "DerDenkendeWeissEs\n") >> >> pgg-gpg-status-GET_HIDDEN(# "GET_HIDDEN >> >> passphrase.enter") >> >> BAD_PASSPHRASE 31A16202F8F7E674\ngpg: Invalid passphrase; please try >> >> again ...\n[GNUPG:] USERID_HINT 31A16202F8F7E674 Sascha Wilde >> > >> >> Might this be related to the latest changes by Daiki? >> > >> > The problem might be related to the default-enable-multibyte-characters >> > issue: >> > http://article.gmane.org/gmane.emacs.gnus.general/62428 >> > if you are using non-ASCII characters in your passphrase. > >> No, only plain ASCII. > > Two more questions: > > 1. The passphrase you entered was correct? Yes. I tried this _many_ times, and only this mail fails (and only with your new code). > 2. How many times were you queried your passphrase? Once. If the passphrase is already cached (I'm _not_ using the agent on this system): none. I also encountered the situation of getting asked over and over again, but I can't reproduce that... > A straightforward way to investigate this problem is decrypting the mail > from the command line as pgg-gpg does. Could you try the following? > > $ cat input.txt | gpg --no-tty --status-fd 1 --command-fd 0 --yes \ > --output output.txt --decrypt This doesn't work (it tries to read the passphrase from the pipe, too. But this works: gpg --no-tty --status-fd 1 --command-fd 0 --yes \ --output output.txt --decrypt test.msg Here is the Output: [GNUPG:] ENC_TO 31A16202F8F7E674 16 0 [GNUPG:] USERID_HINT 31A16202F8F7E674 Sascha Wilde [GNUPG:] NEED_PASSPHRASE 31A16202F8F7E674 BB2185144BB86568 16 0 [GNUPG:] GET_HIDDEN passphrase.enter *********************** [GNUPG:] GOT_IT [GNUPG:] GOOD_PASSPHRASE [GNUPG:] ENC_TO **************** 16 0 gpg: encrypted with 1024-bit ELG-E key, ID C42134DD, created 2003-06-24 "******** **** <*******@intevation.de>" [GNUPG:] NO_SECKEY **************** gpg: encrypted with 2048-bit ELG-E key, ID F8F7E674, created 2004-11-15 "Sascha Wilde " [GNUPG:] BEGIN_DECRYPTION [GNUPG:] PLAINTEXT 74 1143202578 mutt-eukrante-10004-12773-1220 gpg: Signature made Fre 24 Mr 2006 13:16:19 CET using DSA key ID ******** [GNUPG:] SIG_ID AfiFfg5+XNFF741BR7ts3MOF6ds 2006-03-24 1143202579 [GNUPG:] GOODSIG **************** ******** **** <******@intevation.de> gpg: Good signature from "******** **** <*******@intevation.de>" gpg: aka "******** **** ***** <*******.********@intevation.de>" [GNUPG:] VALIDSIG 53D27A45B9AD27915EE44EDE5BB3F5195816791A 2006-03-24 1143202579 0 3 0 17 2 01 53D27A45B9AD27915EE44EDE5BB3F5195816791A [GNUPG:] TRUST_FULLY [GNUPG:] DECRYPTION_OKAY [GNUPG:] GOODMDC [GNUPG:] END_DECRYPTION As you can see: everything worked well... BUT, doing more tests, things became more and more strange: I tried gpg --no-tty --status-fd 1 --command-fd 0 --yes \ --output output.txt --decrypt And pasted in the message using copy and paste, then I got this error: gpg: CRC error; 6E24DE - 15B95A [GNUPG:] END_DECRYPTION So I set pgg-gpg-debug to t and found the same error. Even more strange, when using the gpg-agent gpg --no-tty --status-fd 1 --command-fd 0 --yes \ --output output.txt --decrypt