Function: epg-read-output

epg-read-output is a byte-compiled function defined in epg.el.gz.

Signature

(epg-read-output CONTEXT)

Documentation

Read the output file CONTEXT and return the content as a string.

Source Code

;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-read-output (context)
  "Read the output file CONTEXT and return the content as a string."
  (with-temp-buffer
    (if (fboundp 'set-buffer-multibyte)
	(set-buffer-multibyte nil))
    (if (file-exists-p (epg-context-output-file context))
	(let ((coding-system-for-read 'binary))
	  (insert-file-contents (epg-context-output-file context))
	  (buffer-string)))))