From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72286 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Password protection Date: Thu, 30 Sep 2010 10:46:50 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8739sr8c9h.fsf@lifelogs.com> References: <87sk0t3oxm.fsf@lifelogs.com> <87fwwszd1i.fsf@lifelogs.com> <87wrq4wcpc.fsf@lifelogs.com> <87tyl8xp7u.fsf@gmx.de> <87eiccw9ku.fsf@lifelogs.com> <87vd5nx5wa.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285861820 13255 80.91.229.12 (30 Sep 2010 15:50:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2010 15:50:20 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20659@lists.math.uh.edu Thu Sep 30 17:50:16 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P1LOh-00016e-1h for ding-account@gmane.org; Thu, 30 Sep 2010 17:50:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P1LOb-0003XG-EY; Thu, 30 Sep 2010 10:50:09 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P1LOZ-0003X2-ND for ding@lists.math.uh.edu; Thu, 30 Sep 2010 10:50:07 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P1LOY-0002zh-OP for ding@lists.math.uh.edu; Thu, 30 Sep 2010 10:50:07 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P1LOY-0000L7-00 for ; Thu, 30 Sep 2010 17:50:06 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P1LOW-00012J-3V for ding@gnus.org; Thu, 30 Sep 2010 17:50:04 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Sep 2010 17:50:04 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Sep 2010 17:50:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:7KSp4qkU1h+gBxSMhPqjxTnSSFU= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72286 Archived-At: On Thu, 30 Sep 2010 05:32:53 +0200 Michael Albinus wrote: MA> Ted Zlatanov writes: LMI> Doesn't the Secrets API return a password back to Emacs Lisp land? >>>> >>>> Yes, because `secrets-get-secret' is an ELisp function. But we can have >>>> `secrets-send-secret-to-process' and >> MA> You mean calling Fdbus_call_method on C level? >> >> I think Lars wants it to be more specific to passwords, not a general >> D-Bus call. But yes, it would eventually call out to that function. MA> Hmm. Just a rough idea: what a about a new lisp object "password"? It MA> can be created only via an (interactive) C-level function, and another MA> C-level function returns the carried string. On lisp level, the value MA> is available only as hash string of the password itself. By this, MA> functions like `eq' or `string-equal' could still be applied. MA> C-level functions, visible in lisp (like `process-send-string' or MA> `dbus-call-method'), could be tought to accept a password *or* a string MA> as parameter. So only a process or C code can see or set the real value of a secret token? That seems like a great idea. Ted