all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Jens Lechtenboerger <lechten@wi.uni-muenster.de>
Cc: 18393@debbugs.gnu.org
Subject: bug#18393: mm-view-pkcs7-verify ignores mml-smime-use
Date: Thu, 26 Sep 2019 16:26:25 +0200	[thread overview]
Message-ID: <87pnjndtgu.fsf@gnus.org> (raw)
In-Reply-To: <87tv8zqvh4.fsf@wi.uni-muenster.de> (Jens Lechtenboerger's message of "Thu, 26 Sep 2019 11:04:39 +0200")

Jens Lechtenboerger <lechten@wi.uni-muenster.de> writes:

> On 2019-09-25, Lars Ingebrigtsen wrote:
>
>> (setq smime-CA-file "/tmp/carldssself.pem")
>>
>> I get a blank article buffer.
>
> Same here.

I've now fixed this on the trunk.

>> [...]
>> (defun mm-view-pkcs7-verify (handle)
>>    ...)
>>
>> because this is "signed", not "enveloped".  I'm not very familiar with
>> this stuff...  but the mm-view-pkcs7-verify function just verifies the
>> data and doesn't return anything, which explains why I'm getting an
>> empty article buffer.  But why is this ever useful?  It seems odd,
>> doesn't it?
>>
>> Is the -verify function also supposed to return the decoded text?
>> (Which is "This is some sample content.".)
>
> Function mm-view-pkcs7-verify calls (mm-insert-part handle), which
> somehow deals with the text for subsequent display.

But that's just the raw data that's supposed to be verified.  "openssl
smime" outputs the actual verified data, so I've adjusted the callers to
return that.

In addition, whatever that function inserted in that buffer was just
discarded.

*phew*

OK, so now it works for the case you weren't using, so now I can start
working on the actual bug report.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2019-09-26 14:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87zjegss2o.fsf@pcwi7557.uni-muenster.de>
2019-09-23 19:02 ` bug#18393: mm-view-pkcs7-verify ignores mml-smime-use Lars Ingebrigtsen
2019-09-24 12:35   ` Jens Lechtenboerger
2019-09-25 13:38     ` Lars Ingebrigtsen
2019-09-26  9:04       ` Jens Lechtenboerger
2019-09-26 14:26         ` Lars Ingebrigtsen [this message]
2019-09-26 14:32           ` Lars Ingebrigtsen
2019-09-27  6:09             ` Jens Lechtenboerger
2019-09-27  6:33               ` Jens Lechtenboerger
2019-09-27 13:55                 ` Lars Ingebrigtsen
2019-09-27 15:04                   ` Jens Lechtenboerger
2019-09-27 15:19                     ` Lars Ingebrigtsen
2019-09-27 18:15                       ` Jens Lechtenboerger
2019-09-28 17:55                         ` Lars Ingebrigtsen
2019-09-29  8:56                           ` Jens Lechtenboerger
2019-09-29 11:17                             ` Lars Ingebrigtsen
2019-09-30  6:43                               ` Lars Ingebrigtsen
2020-08-04 17:30                               ` Lars Ingebrigtsen

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=87pnjndtgu.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=18393@debbugs.gnu.org \
    --cc=lechten@wi.uni-muenster.de \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.