From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Luedde, Mirko" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: pgg-passphrase-cache-expiry Date: Thu, 20 Sep 2007 23:11:35 +0200 Message-ID: <82151B77590F6C4093820346A43F1924050C7309@dewdfe26.wdf.sap.corp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1190326724 25342 80.91.229.12 (20 Sep 2007 22:18:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Sep 2007 22:18:44 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 21 00:18:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IYUM3-0006qr-QO for ged-emacs-devel@m.gmane.org; Fri, 21 Sep 2007 00:18:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYUM1-0001hY-Qs for ged-emacs-devel@m.gmane.org; Thu, 20 Sep 2007 18:18:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IYTMu-00012q-Vd for emacs-devel@gnu.org; Thu, 20 Sep 2007 17:15:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IYTMu-00012e-C1 for emacs-devel@gnu.org; Thu, 20 Sep 2007 17:15:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYTMu-00012b-66 for emacs-devel@gnu.org; Thu, 20 Sep 2007 17:15:28 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IYTMt-0001gF-U5 for emacs-devel@gnu.org; Thu, 20 Sep 2007 17:15:28 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IYTMK-0003zU-9A for emacs-pretest-bug@gnu.org; Thu, 20 Sep 2007 17:14:52 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IYTMo-0001fZ-U1 for emacs-pretest-bug@gnu.org; Thu, 20 Sep 2007 17:15:25 -0400 Original-Received: from smtpde02.sap-ag.de ([155.56.68.170]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IYTMo-0001dV-FR for emacs-pretest-bug@gnu.org; Thu, 20 Sep 2007 17:15:22 -0400 Original-Received: from sap.corp by smtpde02.sap-ag.de (26) with ESMTP id l8KLF70I018508 for ; Thu, 20 Sep 2007 23:15:07 +0200 (MEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message Thread-Topic: pgg-passphrase-cache-expiry Thread-Index: Acf7ytNdjnFr2roJQG2Flug5yh/3Dw== X-OriginalArrivalTime: 20 Sep 2007 21:11:36.0226 (UTC) FILETIME=[D402B020:01C7FBCA] X-SAP: out X-Detected-Kernel: Solaris 10 (beta) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Thu, 20 Sep 2007 18:18:35 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79410 gmane.emacs.pretest.bugs:19952 Archived-At: Hi there,=20 the `pgg' library seems to have a problem with cache expiry.=20 If the key is sufficiently long, then the cache will not expire:=20 > 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=20 leading characters. Regards, Mirko.=20 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 =20 ( p g g =20 p g g - C-h v p g g - c a =20 =20 =20 p a=20 s s - C-a C-k C-g =20 C-y C-j C-d C-e C-a =20 C-e C-j C-e C-j =20 C-e C-j C-e C-j =20 =20 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