From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ken Manheimer" Newsgroups: gmane.emacs.devel Subject: Re: allout patch to workaround discrepancies with new pgg interface (gpg-agent provisions) Date: Mon, 25 Dec 2006 13:23:22 -0500 Message-ID: <2cd46e7f0612251023t4bbd0509q1410028f5010c032@mail.gmail.com> References: <2cd46e7f0612231002x72ab9446rbcdb956749038cc0@mail.gmail.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_92068_2168460.1167071002470" X-Trace: sea.gmane.org 1167071035 30426 80.91.229.10 (25 Dec 2006 18:23:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Dec 2006 18:23:55 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 25 19:23:51 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GyuUE-0000Ix-Lj for ged-emacs-devel@m.gmane.org; Mon, 25 Dec 2006 19:23:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GyuUE-0004E1-3A for ged-emacs-devel@m.gmane.org; Mon, 25 Dec 2006 13:23:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GyuTw-0004DG-3M for emacs-devel@gnu.org; Mon, 25 Dec 2006 13:23:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GyuTt-0004Cj-KE for emacs-devel@gnu.org; Mon, 25 Dec 2006 13:23:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GyuTt-0004Ce-Eu for emacs-devel@gnu.org; Mon, 25 Dec 2006 13:23:25 -0500 Original-Received: from [66.249.92.174] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GyuTs-0002UQ-Si for emacs-devel@gnu.org; Mon, 25 Dec 2006 13:23:25 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so3957983ugf for ; Mon, 25 Dec 2006 10:23:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=RiKiadmgZYfTo9puNtgwT8nwYaBf4JaK3zKhjDmSQOo3HBCQAexYw0b5/CEHlKXhnrY3Fln3tfHkjh/7Ku9baedf1CWxg9waoKQ/wuk74vhOnkvs+hoH15wp2g2odsdgMmubQyAyi+UgFDwljIqNJeAe3T9n7GDUVs7HHS1pn40= Original-Received: by 10.78.138.6 with SMTP id l6mr457859hud.1167071002538; Mon, 25 Dec 2006 10:23:22 -0800 (PST) Original-Received: by 10.78.198.10 with HTTP; Mon, 25 Dec 2006 10:23:22 -0800 (PST) Original-To: rms@gnu.org In-Reply-To: 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:64257 Archived-At: ------=_Part_92068_2168460.1167071002470 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline as i said in the other thread ("Documenting gpg-agent"), i do think there's a problem in that passed-in passphrases seem to be disregarded. i also think, however, that allout is better off not handling keypair passphrases, though it must continue to handle symmetric-key passphrases (which i explain in detail in the other thread). so the attached patch does exactly that - allout will continue to handle symmetric-key passphrases, but defer to pgg for keypair passphrases. i think this is a win all around. -- ken ken.manheimer@myriadicity.net 2006-12-25 Ken Manheimer * allout.el (allout-encrypt-string): Handle symmetric-key passphrase caching but leave keypair catching to pgg. ------=_Part_92068_2168460.1167071002470 Content-Type: text/plain; name=allout-patch.txt; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_ew57nx3f Content-Disposition: attachment; filename="allout-patch.txt" LS0tIGFsbG91dC5lbAkyMyBEZWMgMjAwNiAyMDoyMDoxNyAtMDUwMAkxLjkxCisrKyBhbGxvdXQu ZWwJMjUgRGVjIDIwMDYgMTI6NTg6NTcgLTA1MDAJCkBAIC01NzUwLDEwICs1NzUwLDkgQEAKIHBh c3NwaHJhc2UgY2FjaGUuICBXaXRoIG5vIHVuaXZlcnNhbCBhcmd1bWVudCwgdGhlIGFwcHJvcHJp YXRlIHBhc3NwaHJhc2UKIGlzIG9idGFpbmVkIGZyb20gdGhlIGNhY2hlLCBpZiBhdmFpbGFibGUs IGVsc2UgZnJvbSB0aGUgdXNlci4KIAotQ3VycmVudGx5IG9ubHkgR251UEcgZW5jcnlwdGlvbiBp cyBzdXBwb3J0ZWQsIGFuZCBpbnRlZ3JhdGlvbgotd2l0aCBncGctYWdlbnQgaXMgbm90IHlldCBp bXBsZW1lbnRlZC4KK09ubHkgR251UEcgZW5jcnlwdGlvbiBpcyBzdXBwb3J0ZWQuCiAKLVwqKk5P VEUgV0VMTCoqIHRoYXQgdGhlIGVuY3J5cHRlZCB0ZXh0IG11c3QgYmUgYXNjaWktYXJtb3JlZC4g IEZvciBnbnVwZworXCpOT1RFIFdFTEwqIHRoYXQgdGhlIGVuY3J5cHRlZCB0ZXh0IG11c3QgYmUg YXNjaWktYXJtb3JlZC4gIEZvciBnbnVwZwogZW5jcnlwdGlvbiwgaW5jbHVkZSB0aGUgb3B0aW9u IGBgYXJtb3InJyBpbiB5b3VyIH4vLmdudXBnL2dwZy5jb25mIGZpbGUuCiAKIEJvdGggc3ltbWV0 cmljLWtleSBhbmQga2V5LXBhaXIgZW5jcnlwdGlvbiBpcyBpbXB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KQorICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICBwZ2ctZ3BnLXVzZS1hZ2VudAorICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgbmlsKSkpCiAKICAgICAoaWYgKGFuZCBmZXRjaC1wYXNzIChub3Qg cGFzc3BocmFzZSkpCiAgICAgICAgIDs7IEZvcmNlIGxhdGVyIGZldGNoIGJ5IGV2aWN0aW5nIHBh c3NwaHJhc2UgZnJvbSB0aGUgY2FjaGUuCkBAIC02MDEwLDEyICs2MDA5LDkgQEAKIAogICAgIChj YXRjaCAnZW5jcnlwdGlvbi1mYWlsZWQKIAotICAgICAgICA7OyBPYnRhaW4gdGhlIHBhc3NwaHJh c2UgaWYgd2UgZG9uJ3QgYWxyZWFkeSBoYXZlIG9uZSBhbmQgd2UncmUgbm90Ci0gICAgICAgIDs7 IGRvaW5nIGEga2V5cGFpciBlbmNyeXB0aW9uOgotICAgICAgICAoaWYgKG5vdCAob3IgcGFzc3Bo cmFzZQotICAgICAgICAgICAgICAgICAgICAgKGFuZCAoZXF1YWwga2V5LXR5cGUgJ2tleXBhaXIp Ci0gICAgICAgICAgICAgICAgICAgICAgICAgIChub3QgZGVjcnlwdCkpKSkKLQorICAgICAgICA7 OyBXZSBoYW5kbGUgb25seSBzeW1tZXRyaWMta2V5IHBhc3NwaHJhc2UgY2FjaGluZy4KKyAgICAg ICAgKGlmIChhbmQgKG5vdCBwYXNzcGhyYXNlKQorICAgICAgICAgICAgICAgICAobm90IChlcXVh bCBrZXktdHlwZSAna2V5cGFpcikpKQogICAgICAgICAgICAgKHNldHEgcGFzc3BocmFzZSAoYWxs b3V0LW9idGFpbi1wYXNzcGhyYXNlIGZvci1rZXkKICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0YXJnZXQtY2FjaGUtaWQKICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0YXJnZXQtcHJvbXB0 LWlkCg== ------=_Part_92068_2168460.1167071002470 Content-Type: text/plain; name=ChangeLog-entry.txt; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_ew57ojy2 Content-Disposition: attachment; filename="ChangeLog-entry.txt" MjAwNi0xMi0yNSAgS2VuIE1hbmhlaW1lciAgPGtlbi5tYW5oZWltZXJAZ21haWwuY29tPgoKCSog YWxsb3V0LmVsIChhbGxvdXQtZW5jcnlwdC1zdHJpbmcpOiBIYW5kbGUgc3ltbWV0cmljLWtleQoJ cGFzc3BocmFzZSBjYWNoaW5nIGJ1dCBsZWF2ZSBrZXlwYWlyIGNhdGNoaW5nIHRvIHBnZy4gIAo= ------=_Part_92068_2168460.1167071002470 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel ------=_Part_92068_2168460.1167071002470--