Function: epa--wrong-password-p
epa--wrong-password-p is a byte-compiled function defined in
epa-file.el.gz.
Signature
(epa--wrong-password-p CONTEXT)
Source Code
;; Defined in /usr/src/emacs/lisp/epa-file.el.gz
(defun epa--wrong-password-p (context)
(let ((error-string (epg-context-error-output context)))
(and (string-match
"decryption failed: \\(Bad session key\\|No secret key\\)"
error-string)
(match-string 1 error-string))))