Gnus development mailing list
 help / color / mirror / Atom feed
* S/MIME + additional certificate files
@ 2002-09-23 14:46 Krzysztof Jędruczyk
  2002-09-23 15:52 ` Simon Josefsson
  0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Jędruczyk @ 2002-09-23 14:46 UTC (permalink / raw)


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. 

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.

-- 
Best Regards,
        Krzysztof Jędruczyk




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-23 16:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-23 14:46 S/MIME + additional certificate files Krzysztof Jędruczyk
2002-09-23 15:52 ` Simon Josefsson
2002-09-23 15:58   ` Simon Josefsson
2002-09-23 16:58     ` Krzysztof Jędruczyk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).