From 78b20aa314eadeaf6482b7569c43a4b4588697d1 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Thu, 23 May 2019 13:38:53 -0600 Subject: * When Alpine is set to validate a message using the user's store, and user agrees to save a certificate of another user, use the saved certificate immediately to verify the smime message. Reported by Stefan Mueller. --- pith/pine.hlp | 7 ++++++- pith/smime.c | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'pith') diff --git a/pith/pine.hlp b/pith/pine.hlp index 9b3311e3..8a1fff7d 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 342 2019-05-23 12:27:59 +Alpine Commit 343 2019-05-23 13:34:15 ============= h_news ================= @@ -233,6 +233,11 @@ Examples are /auth=plain, or /auth=gssapi, etc.
  • Add backward search in the index screen. Based on patch by Astyanax Foo, submitted in 2009, but resubmitted by Erich Eckner on 2019. + +
  • SMIME: When Alpine is set to validate a message using the user's store, and + user agrees to save a certificate of another user, use the saved + certificate immediately to verify the smime message. Reported by + Stefan Mueller.

    diff --git a/pith/smime.c b/pith/smime.c index de5996db..a19a440b 100644 --- a/pith/smime.c +++ b/pith/smime.c @@ -2785,8 +2785,11 @@ smime_extract_and_save_cert(PKCS7 *p7) /* if not saved, try to save it */ if(already_saved == 0 - && (*pith_smime_confirm_save)(email[j]) == 1) + && (*pith_smime_confirm_save)(email[j]) == 1){ save_cert_for(email[j], x, Public); + if(ps_global->smime->publiccertlist) /* renew store */ + free_certlist(&ps_global->smime->publiccertlist); + } /* check if it got saved */ cert = get_cert_for(email[j], Public, 1); -- cgit v1.2.3-54-g00ecf