From: "Arne Jørgensen" <arne@arnested.dk>
Subject: Re: Patch for smime-stuff
Date: Tue, 22 Feb 2005 23:21:09 +0100 [thread overview]
Message-ID: <87oeecgrsa.fsf@seamus.arnested.dk> (raw)
In-Reply-To: <87d5uszhp7.fsf@seamus.arnested.dk>
[-- Attachment #1: Type: text/plain, Size: 423 bytes --]
Arne Jørgensen <arne@arnested.dk> writes:
> (smime-sign-buffer): Signal an error if `smime-sign-region' fails.
> (smime-encrypt-buffer): Signal an error if `smime-encrypt-region'
> fails.
Since this above changes is actually a security fix they should also
be commited to the v5-10 branch I think.
A patch for the v5-10 branch is attached.
Kind regards,
--
Arne Jørgensen <http://arnested.dk/>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: smime_v5-10.patch --]
[-- Type: text/x-patch, Size: 2552 bytes --]
Index: lisp/ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v
retrieving revision 6.2771.2.115
diff -u -p -r6.2771.2.115 ChangeLog
--- lisp/ChangeLog 21 Feb 2005 13:38:17 -0000 6.2771.2.115
+++ lisp/ChangeLog 22 Feb 2005 22:16:09 -0000
@@ -1,3 +1,10 @@
+2005-02-22 Arne J^[,Ax^[(Brgensen <arne@arnested.dk>
+
+ * smime.el (smime-sign-buffer): Signal an error if
+ `smime-sign-region' fails.
+ (smime-encrypt-buffer): Signal an error if `smime-encrypt-region'
+ fails.
+
2005-02-21 Reiner Steib <Reiner.Steib@gmx.de>
* gnus-art.el (gnus-parse-news-url, gnus-button-handle-news):
Index: lisp/smime.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/smime.el,v
retrieving revision 6.33.2.3
diff -u -p -r6.33.2.3 smime.el
--- lisp/smime.el 13 Feb 2005 04:46:05 -0000 6.33.2.3
+++ lisp/smime.el 22 Feb 2005 22:16:10 -0000
@@ -332,16 +332,17 @@ is expected to contain of a PEM encoded
KEYFILE should contain a PEM encoded key and certificate."
(interactive)
(with-current-buffer (or buffer (current-buffer))
- (smime-sign-region
- (point-min) (point-max)
- (if keyfile
- keyfile
- (smime-get-key-with-certs-by-email
- (completing-read
- (concat "Sign using which key? "
- (if smime-keys (concat "(default " (caar smime-keys) ") ")
- ""))
- smime-keys nil nil (car-safe (car-safe smime-keys))))))))
+ (unless (smime-sign-region
+ (point-min) (point-max)
+ (if keyfile
+ keyfile
+ (smime-get-key-with-certs-by-email
+ (completing-read
+ (concat "Sign using which key? "
+ (if smime-keys (concat "(default " (caar smime-keys) ") ")
+ ""))
+ smime-keys nil nil (car-safe (car-safe smime-keys))))))
+ (error "Signing failed"))))
(defun smime-encrypt-buffer (&optional certfiles buffer)
"S/MIME encrypt BUFFER for recipients specified in CERTFILES.
@@ -350,11 +351,12 @@ a PEM encoded key and certificate. Uses
nil."
(interactive)
(with-current-buffer (or buffer (current-buffer))
- (smime-encrypt-region
- (point-min) (point-max)
- (or certfiles
- (list (read-file-name "Recipient's S/MIME certificate: "
- smime-certificate-directory nil))))))
+ (unless (smime-encrypt-region
+ (point-min) (point-max)
+ (or certfiles
+ (list (read-file-name "Recipient's S/MIME certificate: "
+ smime-certificate-directory nil))))
+ (error "Encryption failed"))))
;; Verify+decrypt region
next prev parent reply other threads:[~2005-02-22 22:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-22 16:24 Arne Jørgensen
2005-02-22 16:54 ` Simon Josefsson
2005-02-22 17:07 ` password-cache-expiry and encrypt-password-cache-expiry (was: Patch for smime-stuff) Arne Jørgensen
2005-02-22 17:23 ` password-cache-expiry and encrypt-password-cache-expiry Simon Josefsson
2005-02-24 17:47 ` Ted Zlatanov
2005-02-22 22:21 ` Arne Jørgensen [this message]
2005-02-22 23:51 ` Patch for smime-stuff 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=87oeecgrsa.fsf@seamus.arnested.dk \
--to=arne@arnested.dk \
/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).