2006-09-27 Daiki Ueno <ueno@unixuser.org>
+ * epa.el (epa-decrypt-file): Set passphrase-callback.
+ (epa-sign-file): Ditto.
+ (epa-encrypt-file): Ditto.
+ (epa-decrypt-region): Ditto.
+ (epa-sign-region): Ditto.
+ (epa-encrypt-region): Ditto.
+ (epa-sign-keys): Ditto.
+
* epg.el (epg-progress-callback-function): Removed.
2006-09-24 Daiki Ueno <ueno@unixuser.org>
(file-name-directory default-name)
default-name)))
(context (epg-make-context)))
+ (epg-context-set-passphrase-callback context
+ #'epa-passphrase-callback-function)
(message "Decrypting %s..." (file-name-nondirectory file))
(epg-decrypt-file context file plain)
(message "Decrypting %s...done" (file-name-nondirectory file))
(epg-context-set-armor context epa-armor)
(epg-context-set-textmode context epa-textmode)
(epg-context-set-signers context signers)
+ (epg-context-set-passphrase-callback context
+ #'epa-passphrase-callback-function)
(message "Signing %s..." (file-name-nondirectory file))
(epg-sign-file context file signature mode)
(message "Signing %s...done" (file-name-nondirectory file))))
(context (epg-make-context)))
(epg-context-set-armor context epa-armor)
(epg-context-set-textmode context epa-textmode)
+ (epg-context-set-passphrase-callback context
+ #'epa-passphrase-callback-function)
(message "Encrypting %s..." (file-name-nondirectory file))
(epg-encrypt-file context file recipients cipher)
(message "Encrypting %s...done" (file-name-nondirectory file))))
(save-excursion
(let ((context (epg-make-context))
plain)
+ (epg-context-set-passphrase-callback context
+ #'epa-passphrase-callback-function)
(message "Decrypting...")
(setq plain (epg-decrypt-string context (buffer-substring start end)))
(message "Decrypting...done")
(epg-context-set-armor context epa-armor)
(epg-context-set-textmode context epa-textmode)
(epg-context-set-signers context signers)
+ (epg-context-set-passphrase-callback context
+ #'epa-passphrase-callback-function)
(message "Signing...")
(setq signature (epg-sign-string context
(encode-coding-string
cipher)
(epg-context-set-armor context epa-armor)
(epg-context-set-textmode context epa-textmode)
+ (epg-context-set-passphrase-callback context
+ #'epa-passphrase-callback-function)
(message "Encrypting...")
(setq cipher (epg-encrypt-string context
(encode-coding-string
(error "No keys selected"))
(list keys current-prefix-arg)))
(let ((context (epg-make-context)))
+ (epg-context-set-passphrase-callback context
+ #'epa-passphrase-callback-function)
(message "Signing keys...")
(epg-sign-keys context keys local)
(message "Signing keys...done")))