From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46647 Path: main.gmane.org!not-for-mail From: beaker@iavmb.pl (Krzysztof =?iso-8859-2?q?J=EAdruczyk?=) Newsgroups: gmane.emacs.gnus.general Subject: S/MIME + additional certificate files Date: Mon, 23 Sep 2002 16:46:42 +0200 Organization: DNRC Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1032792472 1589 127.0.0.1 (23 Sep 2002 14:47:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 14:47:52 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17tUV5-0000PT-00 for ; Mon, 23 Sep 2002 16:47:51 +0200 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 17tUUX-0007o3-00; Mon, 23 Sep 2002 09:47:17 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 23 Sep 2002 09:47:56 -0500 (CDT) 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 JAA08513 for ; Mon, 23 Sep 2002 09:47:43 -0500 (CDT) Original-Received: (qmail 25843 invoked by alias); 23 Sep 2002 14:46:55 -0000 Original-Received: (qmail 25838 invoked from network); 23 Sep 2002 14:46:55 -0000 Original-Received: from grasshopper.iavmb.pl (217.153.79.163) by gnus.org with SMTP; 23 Sep 2002 14:46:55 -0000 Original-Received: from localhost (localhost.iavmb.pl [127.0.0.1]) by grasshopper.iavmb.pl (Postfix) with ESMTP id EDEC03282E3D; Mon, 23 Sep 2002 16:46:39 +0200 (CEST) Original-Received: from BEAKER (beaker.lan.iavmb.pl [192.168.0.32]) by grasshopper.iavmb.pl (Postfix) with ESMTP id 77F8A3282E38; Mon, 23 Sep 2002 16:46:38 +0200 (CEST) Original-To: ding@gnus.org Original-Lines: 38 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-msvc-nt5.0.2195) X-Virus-Scanned: by AMaViS perl-11 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46647 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46647 Hello, I've recently tried to send some S/MIME signed messages and encountered a problem, which I believe lies in gnus' smime.el. The problem is that even if I specify additional certificate files in smime-keys variable - they don't get attached to signature. This might cause with verification - depending on what certs recipient has already installed (the certification path will be incomplete). I've searched google for reports on this particular problem, and found nothing. So - I looked at it myself.=20 I identified the problem to be in smime-sign-buffer, which in turn passes keyfile retrieved with smime-get-key-by-email to smime-sign-region. The problem is that smime-get-key-by-email returns only the key without accompanying additional certs. Workaround that works for me is to change line 315 in smime.el from (smime-get-key-by-email to (smime-get-key-with-certs-by-email and add new function definition: (defun smime-get-key-with-certs-by-email (email) (cdr (assoc email smime-keys))) I believe that this is incomplete solution - I haven't reviewed if rest of the code doesn't suffer from similar problem. I'm just signaling a problem here since I know elisp very little. BTW. I'm using an Oort Gnus, (AFAIR 0.08; it should be mentioned in the headers of this message), taken from cvs about 28-aug-2002. --=20 Best Regards, Krzysztof J=EAdruczyk