Function: pgg-pgp-verify-region
pgg-pgp-verify-region is a byte-compiled function defined in
pgg-pgp.el.gz.
Signature
(pgg-pgp-verify-region START END &optional SIGNATURE)
Documentation
Verify region between START and END as the detached signature SIGNATURE.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/pgg-pgp.el.gz
(defun pgg-pgp-verify-region (start end &optional signature)
"Verify region between START and END as the detached signature SIGNATURE."
(let* ((orig-file (pgg-make-temp-file "pgg"))
(args "+verbose=1 +batchmode +language=us"))
(with-file-modes 448
(defvar jam-zcat-filename-list)
(let ((coding-system-for-write 'binary)
jka-compr-compression-info-list jam-zcat-filename-list)
(write-region start end orig-file)))
(if (stringp signature)
(progn
(copy-file signature (setq signature (concat orig-file ".asc")))
(setq args (concat args " " (shell-quote-argument signature)))))
(setq args (concat args " " (shell-quote-argument orig-file)))
(pgg-pgp-process-region (point)(point) nil pgg-pgp-program args)
(delete-file orig-file)
(if signature (delete-file signature))
(pgg-process-when-success
(goto-char (point-min))
(let ((case-fold-search t))
(while (re-search-forward "^warning: " nil t)
(delete-region (match-beginning 0)
(progn (beginning-of-line 2) (point)))))
(goto-char (point-min))
(when (re-search-forward "^\\.$" nil t)
(delete-region (point-min)
(progn (beginning-of-line 2)
(point)))))))