aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Manheimer2010-12-16 17:43:45 -0500
committerKen Manheimer2010-12-16 17:43:45 -0500
commit0281bf138807e04b44b5891ec8d5a365dad8e3c1 (patch)
tree9c8dfd1d7d2aaa71780c4dff06856e84970c5893
parent075746e2c18959705ba7b186657fa84b01e42337 (diff)
downloademacs-0281bf138807e04b44b5891ec8d5a365dad8e3c1.tar.gz
emacs-0281bf138807e04b44b5891ec8d5a365dad8e3c1.zip
(allout-mode), (allout-encrypt-string): Describe the problem with caching
of incorrect symmetric-decryption keys.
-rw-r--r--lisp/allout.el22
1 files changed, 15 insertions, 7 deletions
diff --git a/lisp/allout.el b/lisp/allout.el
index b67f8125a06..968c7081678 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -1920,12 +1920,12 @@ If the content of the topic containing the cursor was encrypted
1920for a save, it is automatically decrypted for continued editing. 1920for a save, it is automatically decrypted for continued editing.
1921 1921
1922PROBLEM: Attempting symmetric decryption with an incorrect key 1922PROBLEM: Attempting symmetric decryption with an incorrect key
1923not only fails, but the incorrect key seems to be associated with 1923not only fails, but for some GnuPG v2 versions the incorrect key
1924the specific entry in the gpg cache, so that you do not get an 1924is apparently retained in the gpg cache and reused, preventing
1925opportunity to override the incorrect key and decrypt that 1925decryption, until the cache finally times out. That can take
1926entry. (Decryption of other entries is not affected.) To clear 1926several minutes. \(Decryption of other entries is not affected.)
1927this problem, clear your gpg-agent's cache by sending it a '-HUP' 1927To clear this problem before the cache times out, deliberately
1928signal. 1928clear your gpg-agent's cache by sending it a '-HUP' signal.
1929 1929
1930See `allout-toggle-current-subtree-encryption' function docstring 1930See `allout-toggle-current-subtree-encryption' function docstring
1931and `allout-encrypt-unencrypted-on-saves' customization variable 1931and `allout-encrypt-unencrypted-on-saves' customization variable
@@ -6169,7 +6169,15 @@ dialog.
6169Optional REJECTED is for internal use, to convey the number of 6169Optional REJECTED is for internal use, to convey the number of
6170rejections due to matches against 6170rejections due to matches against
6171`allout-encryption-ciphertext-rejection-regexps', as limited by 6171`allout-encryption-ciphertext-rejection-regexps', as limited by
6172`allout-encryption-ciphertext-rejection-ceiling'." 6172`allout-encryption-ciphertext-rejection-ceiling'.
6173
6174PROBLEM: Attempting symmetric decryption with an incorrect key
6175not only fails, but for some GnuPG v2 versions the incorrect key
6176is apparently retained in the gpg cache and reused, preventing
6177decryption, until the cache finally times out. That can take
6178several minutes. \(Decryption of other entries is not affected.)
6179To clear this problem before the cache times out, deliberately
6180clear your gpg-agent's cache by sending it a '-HUP' signal."
6173 6181
6174 (require 'epg) 6182 (require 'epg)
6175 (require 'epa) 6183 (require 'epa)