From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43772 Path: quimby.gnus.org!not-for-mail From: david.goldberg6@verizon.net (David S. Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: Re: attachments in S/MIME encrypted messages Date: Tue, 05 Mar 2002 11:40:54 -0500 Message-ID: References: NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1015347243 31765 195.204.10.66 (5 Mar 2002 16:54:03 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 5 Mar 2002 16:54:03 GMT Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16iICQ-0008Fx-00; Tue, 05 Mar 2002 17:54:02 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16iI0W-0004fD-00; Tue, 05 Mar 2002 10:41:44 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 05 Mar 2002 10:41:47 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA27240 for ; Tue, 5 Mar 2002 10:41:35 -0600 (CST) Original-Received: (qmail 17641 invoked by alias); 5 Mar 2002 16:41:26 -0000 Original-Received: (qmail 17636 invoked from network); 5 Mar 2002 16:41:26 -0000 Original-Received: from smtpproxy1.mitre.org (129.83.20.90) by gnus.org with SMTP; 5 Mar 2002 16:41:26 -0000 Original-Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy1.mitre.org (8.11.3/8.11.3) with ESMTP id g25Gex802181 for ; Tue, 5 Mar 2002 11:40:59 -0500 (EST) Original-Received: from MAILHUB1 (mailhub1.mitre.org [129.83.20.31]) by smtpsrv1.mitre.org (8.11.3/8.11.3) with ESMTP id g25Geuk25434 for ; Tue, 5 Mar 2002 11:40:56 -0500 (EST) Original-Received: from blackbird.mitre.org (129.83.10.221) by mailhub1.mitre.org with SMTP id 9392001; Tue, 05 Mar 2002 11:40:27 -0500 Original-To: The Gnus Mailing List X-Face: GUaHTH@nS>[7,ME@-gYZ4#Wl{z"99k@[[Y8AcP0x1paqu.,z9,XSV1WI>{q3f6^e5(zrit <4fV&VHhmE`uidRqtmG27;si9&r;#KSF~E#$%W8w(xdp)H4tW=\2XOk~3=@oGqqpj;m4xf Ow;y26396&,34@9#~4;@*S;E0cq"LM9N(us4P%F(Nxis'Vvfm9?KufH;:Q$dMa-QWGLR&K d0`LJZE8xb*>^yN>b]_NcU:E=Zn\1=#/(OS2 Original-Lines: 83 Precedence: list X-Majordomo: 1.94.jlt7 Xref: quimby.gnus.org gmane.emacs.gnus.general:43772 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43772 >>>>> On Mon, 04 Mar 2002 22:00:43 +0100, Simon Josefsson >>>>> said: > david.goldberg6@verizon.net (David S. Goldberg) writes: >> Maybe, but I had the same problem with a MULE-enabled XEmacs 21.1.14 > But without --with-file-coding enabled, right? When I built without > --with-file-coding I also got CRLFs. Right. Under 21.1.14 I don't see --with-file-coding available as a configure option (when I run configure --help). However a look into the configure script itself shows that it's there. I just fired up a 21.1.14 (no mule, no file-coding) to try to read an encrypted message to check your fix and got this backtrace (lines wrapped by me): Signaling: (wrong-number-of-arguments # 7) completing-read("Decipher using which key? (default dsg@mitre.org) " (("dsg@mitre.org" "/afs/rcf/user/dsg/private/certs/dsg-20020208-20030802.pem") ("old-dsg@mitre.org" "/afs/rcf/user/dsg/private/certs/dsg-20000817-20020208.pem") ("oldest-dsg@mitre.org" "/afs/rcf/user/dsg/private/certs/dsg-19990224-20000817.pem")) nil nil nil nil "dsg@mitre.org") mm-view-pkcs7-decrypt((#"> ("application/x-pkcs7-mime" (name . "smime.p7m")) base64 nil ("attachment" (filename . "smime.p7m")) "S/MIME Encrypted Message" nil nil)) mm-view-pkcs7((#"> ("application/x-pkcs7-mime" (name . "smime.p7m")) base64 nil ("attachment" (filename . "smime.p7m")) "S/MIME Encrypted Message" nil nil)) mm-possibly-verify-or-decrypt((#"> ("application/x-pkcs7-mime" (name . "smime.p7m")) base64 nil ("attachment" (filename . "smime.p7m")) "S/MIME Encrypted Message" nil nil) ("application/x-pkcs7-mime" (name . "smime.p7m"))) mm-dissect-buffer(nil nil) gnus-display-mime() gnus-article-prepare-display() gnus-article-prepare(8040 nil) gnus-summary-display-article(8040 nil) gnus-summary-select-article(nil force) gnus-summary-show-article(nil) call-interactively(gnus-summary-show-article) Which seems odd. It works just fine in 21.4.6. > Just run OpenSSL on the certificates in the S/MIME blob: > openssl smime -pk7out < mail > foo > openssl pkcs7 -print_certs -text < foo > bar > openssl x509 -email -noout < bar > try it with different messages and see when the last command doesn't > output the email address from the cert. Hmm. If "mail" is just signed the last one works fine. If "mail" is encrypted it barfs (the result of the previous command is empty, which doesn't surprise me somehow :-), but if I decrypt mail first and work on the decrypted output it works OK. -- Dave Goldberg david.goldberg6@verizon.net