From: yamaoka Date: Mon, 17 May 1999 05:44:29 +0000 (+0000) Subject: (mime-verify-application/pgp-signature): Specify the name of `sig-file' X-Git-Tag: semi-pgpgpg_15~1 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=eaa7a888f0d18ffc0c493349f038d186e06a873c;p=elisp%2Fsemi.git (mime-verify-application/pgp-signature): Specify the name of `sig-file' explicitly for `mime-pgp-check-signature'. (mime-pgp-check-signature): Accept new arg `sig-file' and feed its value to the verify command. --- diff --git a/mime-pgp.el b/mime-pgp.el index 508f279..23ed8d3 100644 --- a/mime-pgp.el +++ b/mime-pgp.el @@ -328,7 +328,7 @@ to just an ascii armor. However, a few leading garbage lines are allowed." (mime-pgp-detect-version) )) -(defun mime-pgp-check-signature (output-buffer orig-file +(defun mime-pgp-check-signature (output-buffer sig-file orig-file &optional hide-lines) (with-current-buffer output-buffer (erase-buffer) @@ -336,16 +336,16 @@ to just an ascii armor. However, a few leading garbage lines are allowed." (let* ((lang (mime-pgp-default-language)) (command (mime-pgp-command 'v)) (args (cond ((eq 'gpg pgp-version) - (list "--batch" "--verify" - (concat orig-file ".sig")) + (list "--batch" "--verify" sig-file) ) ((eq 'pgp50 pgp-version) (list "+batchmode=1" (format "+language=%s" lang) - (concat orig-file ".sig")) + sig-file) ) ((eq 'pgp pgp-version) - (list (format "+language=%s" lang) orig-file)) + (list (format "+language=%s" lang) + sig-file orig-file)) )) (good-regexp (mime-pgp-good-signature-regexp)) (good-post-function (mime-pgp-good-signature-post-function)) @@ -473,7 +473,7 @@ list of expected key-ID, start position and lines to be shown a result." (unwind-protect (while (not done) (if (setq return (mime-pgp-check-signature - output-buffer orig-file hide-lines)) + output-buffer sig-file orig-file hide-lines)) (progn (mime-pgp-show-echo-buffer (car return) (cdr return)) (setq done t)