Function: smime-decrypt-buffer

smime-decrypt-buffer is an interactive and byte-compiled function defined in smime.el.gz.

Signature

(smime-decrypt-buffer &optional BUFFER KEYFILE)

Documentation

Decrypt S/MIME message in BUFFER using KEYFILE.

Uses current buffer if BUFFER is nil, and query user of KEYFILE if it's nil. On success, replaces data in buffer and return non-nil. Any details (stderr on success, stdout and stderr on error) are left in the buffer specified by smime-details-buffer.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/smime.el.gz
(defun smime-decrypt-buffer (&optional buffer keyfile)
  "Decrypt S/MIME message in BUFFER using KEYFILE.
Uses current buffer if BUFFER is nil, and query user of KEYFILE if it's nil.
On success, replaces data in buffer and return non-nil.
Any details (stderr on success, stdout and stderr on error) are left
in the buffer specified by `smime-details-buffer'."
  (interactive)
  (with-current-buffer (or buffer (current-buffer))
    (smime-decrypt-region
     (point-min) (point-max)
     (expand-file-name
      (or keyfile
	  (smime-get-key-by-email
	   (gnus-completing-read
	    "Decipher using key"
	    smime-keys nil (car-safe (car-safe smime-keys)))))))))