From: "Luedde, Mirko" <mirko.luedde@sap.com>
To: <emacs-pretest-bug@gnu.org>
Subject: pgg-passphrase-cache-expiry
Date: Thu, 20 Sep 2007 23:11:35 +0200 [thread overview]
Message-ID: <82151B77590F6C4093820346A43F1924050C7309@dewdfe26.wdf.sap.corp> (raw)
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
next reply other threads:[~2007-09-20 21:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-20 21:11 Luedde, Mirko [this message]
2007-09-20 23:00 ` pgg-passphrase-cache-expiry Daiki Ueno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=82151B77590F6C4093820346A43F1924050C7309@dewdfe26.wdf.sap.corp \
--to=mirko.luedde@sap.com \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.