Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: decrypting S/MIME messages
Date: Sun, 29 Jul 2001 22:14:44 +0200	[thread overview]
Message-ID: <iluy9p75w7f.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <eyae1nsxdg.fsf@vsu.ru> (Vladimir Volovich's message of "Sun, 29 Jul 2001 17:00:59 +0400")

Vladimir Volovich <vvv@vsu.ru> writes:

> "SJ" == Simon Josefsson writes:
> 
> SJ> Ok, S/MIME decryption work for me now, tell me if it work for
> SJ> you.
> 
> Not yet. when viewing such S/MIME encrypted messages (even generated
> by gnus itself), i get an error:
> 
>   signal(error ("Could not identify PKCS#7 type"))
>   error("Could not identify PKCS#7 type")

I had no problem with XEmacs 21.4 or Emacs 21.0.104, do you have some
special mule setting?  It might be some mule interference, the code
compares buffer contents with a string.  Please try this patch and
tell if it works or not:

--- mm-view.el.~6.13.~	Sun Jul 29 03:01:59 2001
+++ mm-view.el	Sun Jul 29 18:02:13 2001
@@ -338,7 +338,7 @@
 			?\x86 ?\xf7 ?\x0d ?\x01 ?\x07 ?\x03)))))
   
 (defun mm-view-pkcs7-get-type (handle)
-  (with-temp-buffer
+  (mm-with-unibyte-buffer
     (mm-insert-part handle)
     (cond ((looking-at (regexp-quote mm-pkcs7-enveloped-magic))
 	   'enveloped)

>  (defun smime-call-openssl-region (b e buf &rest args)
> -  (case (apply 'call-process-region b e smime-openssl-program nil buf nil args)
>+  (case (apply 'call-process-region b e smime-openssl-program nil (list buf nil) nil args)

I applied this, thanks.  I hope OpenSSL error messages are still
handled correctly, otherwise we'll have to come up with some other
solution.

> -	(when (apply 'smime-call-openssl-region b e buffer "smime" "-sign"
>+	(when (apply 'smime-call-openssl-region b e buffer "smime" "-sign" "-rand" "/etc/entropy"

I added `smime-extra-arguments' instead.  Is it sufficient?



  parent reply	other threads:[~2001-07-29 20:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-27 16:26 Vladimir Volovich
2001-07-28  2:29 ` Simon Josefsson
2001-07-29  1:13   ` Simon Josefsson
2001-07-29 13:00     ` Vladimir Volovich
2001-07-29 14:44       ` Amos Gouaux
2001-07-29 20:14       ` Simon Josefsson [this message]
2001-07-30  9:39         ` Vladimir Volovich
2001-07-30 22:26           ` Simon Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluy9p75w7f.fsf@barbar.josefsson.org \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).