result.
(epg--status-DECRYPTION_OKAY): Copy 'plaintext result to
'decrypted-plaintext.
+ (epg-verify-file): Don't use a temp output file.
+ (epg-verify-string): Ditto.
2007-03-08 Daiki Ueno <ueno@unixuser.org>
(unwind-protect
(progn
(if plain
- (epg-context-set-output-file context plain)
- (epg-context-set-output-file context
- (epg--make-temp-file "epg-output")))
+ (epg-context-set-output-file context plain))
(if signed-text
(epg-start-verify context
(epg-make-data-from-file signature)
(epg-make-data-from-file signature)))
(epg-wait-for-completion context)
(unless plain
- (epg-read-output context)))
- (unless plain
- (epg-delete-output-file context))
+ (epg-context-result-for context 'plaintext)))
(epg-reset context)))
;;;###autoload
input-file)
(unwind-protect
(progn
- (epg-context-set-output-file context
- (epg--make-temp-file "epg-output"))
(if signed-text
(progn
(setq input-file (epg--make-temp-file "epg-signature"))
(epg-make-data-from-string signed-text)))
(epg-start-verify context (epg-make-data-from-string signature)))
(epg-wait-for-completion context)
- (epg-read-output context))
- (epg-delete-output-file context)
+ (epg-context-result-for context 'plaintext))
(if (and input-file
(file-exists-p input-file))
(delete-file input-file))