[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pgg-passphrase-cache-expiry
From: |
Luedde, Mirko |
Subject: |
pgg-passphrase-cache-expiry |
Date: |
Thu, 20 Sep 2007 23:11:35 +0200 |
Hi there,
the `pgg' library seems to have a problem with cache expiry.
If the key is sufficiently long, then the cache will not expire:
> pgg-passphrase-cache-expiry
> 16
>
> (pgg-add-passphrase-to-cache "1234567890abcdefghijklmnopqrstuvwxyz"
"mirko")
> [nil 18162 57301 836000 nil pgg-remove-passphrase-from-cache
("90abcdefghijklmnopqrstuvwxyz" nil) nil]
>
> (pgg-add-passphrase-to-cache "1234567" "mirko")
> [nil 18162 57304 239000 nil pgg-remove-passphrase-from-cache
("1234567" nil) nil]
>
> ;; after 16 secs
>
> (pgg-read-passphrase-from-cache "1234567")
> nil
>
> (pgg-read-passphrase-from-cache
"1234567890abcdefghijklmnopqrstuvwxyz")
> "mirko"
Perhaps it has to do with key truncation. While the docs say key will
be truncated to 8 trailing characters, key will be truncated off 8
leading characters.
Regards, Mirko.
If emacs crashed, and you have the emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
c:/tools/emacs-22-0-50/etc/DEBUG for instructions.
In GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600)
of 2006-05-14 on NEUTRINO
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags
-Ic:/Programme/GnuWin32/include'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: DEU
locale-coding-system: cp1252
default-enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
show-paren-mode: t
display-time-mode: t
encoded-kbd-mode: t
tooltip-mode: t
auto-compression-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
a f t e r SPC 2 0 SPC s e c s C-a <up> <up> <return>
<up> ( p g g <backspace> <backspace> <backspace> <backspace>
p g g - C-h v p g g - c a <tab> <tab> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> p a
s s <tab> - <tab> C-a C-k C-g <backspace> <backspace>
<backspace> <backspace> C-y C-j C-d C-e C-a <return>
C-e C-j <down> C-e C-j <down> <down> <return> <help-echo>
C-e <help-echo> <help-echo> C-j <down> C-e C-j <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar>
<help-menu> <report-emacs-bug>
Recent messages:
Loading .ilisp...
Loading `~/setup/gnu-emacs/.ilisp.el'
Loaded `~/setup/gnu-emacs/.ilisp.el'
Loading .ilisp...done
Loaded `.emacs.el'
For information about the GNU Project and its goals, type C-h C-p.
Mark set [2 times]
Quit
Mark set
Loading emacsbug...done
- pgg-passphrase-cache-expiry,
Luedde, Mirko <=