From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69826 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: Accepting x-pkcs7-signature Date: Fri, 23 Jul 2010 20:13:35 +0200 Message-ID: <877hkmoyls.fsf@randomsample.de> References: <87y6d3z0f4.fsf@randomsample.de> <87eieu456i.fsf@broken.deisui.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279908899 28820 80.91.229.12 (23 Jul 2010 18:14:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2010 18:14:59 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18216@lists.math.uh.edu Fri Jul 23 20:14:55 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OcMlo-0008FW-Li for ding-account@gmane.org; Fri, 23 Jul 2010 20:14:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1OcMkv-0002kv-M4; Fri, 23 Jul 2010 13:13:57 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OcMkr-0002kg-17 for ding@lists.math.uh.edu; Fri, 23 Jul 2010 13:13:53 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OcMkp-0003Gc-I2 for ding@lists.math.uh.edu; Fri, 23 Jul 2010 13:13:52 -0500 Original-Received: from m61s02.vlinux.de ([83.151.21.164]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OcMko-0003F0-00 for ; Fri, 23 Jul 2010 20:13:50 +0200 Original-Received: from dslc-082-082-186-166.pools.arcor-ip.net ([82.82.186.166] helo=spaten) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1OcMkn-0003iy-HB for ding@gnus.org; Fri, 23 Jul 2010 20:13:49 +0200 In-Reply-To: <87eieu456i.fsf@broken.deisui.org> (Daiki Ueno's message of "Fri, 23 Jul 2010 23:57:09 +0900") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69826 Archived-At: Daiki Ueno writes: > David Engster writes: > >>>> ctl 'protocol) >>>> "application/pkcs7-signature") >>> >>> ^^ this line should also be changed to accept "x-pkcs7-signature"? >> >> The full sexp is this: >> >> (setq part (mm-find-raw-part-by-type >> ctl (or (mm-handle-multipart-ctl-parameter >> ctl 'protocol) >> "application/pkcs7-signature") >> t))) >> >> So I thought this would just be used as a fallback? > > Well, I looked at the following code and thought that PART was > signed material: > > (setq plain (epg-verify-string context (mm-get-part signature) part) To be honest, I really have problems understanding what all that 'mm'-code does. It seems to me the HANDLE structure already has all the information that's needed, including pointers to the buffers containing the text and the detached signature, but somehow it extracts them again. I also don't understand the above fallback for "application/pkcs7-signature", since multipart/signed must have a 'protocol' parameter in the Content-Type anyway, otherwise it's just broken. Regards, David