From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Opportunistic STARTTLS in smtpmail.el Date: Mon, 02 May 2011 20:59:18 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87d3kal0za.fsf@lifelogs.com> <874o5mky4o.fsf@lifelogs.com> <8762ptue8r.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304362779 18588 80.91.229.12 (2 May 2011 18:59:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 18:59:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 02 20:59:35 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QGyLG-0005Yx-6T for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 20:59:34 +0200 Original-Received: from localhost ([::1]:34293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGyLF-0001ZS-Rx for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 14:59:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGyLC-0001ZC-Kb for emacs-devel@gnu.org; Mon, 02 May 2011 14:59:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGyLB-0000an-5j for emacs-devel@gnu.org; Mon, 02 May 2011 14:59:30 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:38534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGyLA-0000aj-SF for emacs-devel@gnu.org; Mon, 02 May 2011 14:59:29 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QGyLA-0005W0-4U for emacs-devel@gnu.org; Mon, 02 May 2011 20:59:28 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 20:59:28 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 20:59:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUNDAvb2ttxb28hHh2v ra45Njb29fagq9aeAAACZklEQVQ4jVWTQZLjIAxFVZOZA+AmrNsEZ52KwgEgOOs0WL0nleH+RxgJ O5lqkiobP/H1JQBsSikSUVDraH1UBbNLaUKiRTPSgiQkaRhcigU9UckqWvnZ6KxNAqaCiAUXpVlX 939MEF3yKGPNsqbgF/Bu7iB3YF65BVwFnIMdX/EbSFdJscx+fMWv4BzYFPpw9ct7QaumwUWpg2Qe vPsJRtUG9DaYyCnq21eDoI0qF4kOtXF19vYC0TzRx8DmW4suC2ClBiqZB7saW731wlSvT0BQH5w8 i8KTOzXaYxPf4IIaCrops9hzETCuORyv+4tjitmIqWC2MmHp4Kj0rafvUjUpkTJ1wksdvtlNa/No b1VPNkBwVqmc6/4SxKYOyTx5qy0kv5h6m8Ie6dVDPRUiiOhVNcOX9nTcQJQzADP6IZq6PCmP6ic4 z8604Zntf1BWcAimPbTdKmNAAvayfabNwU5L647bQOJKwMXEMsbpZasWby1LCbhiGAi3rWgH71IH PpalPclvoB7yqAV4stzbR6Et+4zZdXC21tkbg68VXBl0qSwX4fxAWt7ARgFLipZo/wYffGomaQlf BGsLof9eAZ8BLpD7IkpT8eiPb4AIxJ7SRCST1W6dEWAHuYhivyG4XY4rAHggPtK0fsf1ZOkDg3MH XCNOeMKjnJOU7gwW8B1knAB4hZLLfWLgwB92iDtLpw40O+cQ2DnIMz+hePgDwICbf9/AFdCfoMAv wKB0+oQ+FsifOyrgRRdHBvbewRnygb/tikz6iuG0LoEsEX3yOwaV1CYFQK8XWNhqmt9TfL/Bjuj+ nvwD+HoD1c4P+QIAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Yoko Ono Plastic Ono Band's _Between My Head And The Sky_: "Unun. To" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:lA7ms0pzoa7v58woJGhJxSIJLn0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138979 Archived-At: Ted Zlatanov writes: > LMI> "--x509keyfile" "--x509certfile" > > LMI> to gnutlc-cli. `open-network-stream' has no concept of these things, > LMI> and I'm not sure gnutls.c has, either. Ted? > > Yes, definitely, with the :keyfiles and :trustfiles parameters to > `gnutls-boot'. Right. Would "--x509keyfile" correspond to :keyfiles and "--x509certfile" to :trustfiles? > This is all nasty, nasty for the user. The whole > `smtpmail-starttls-credentials' structure can be replaced with > `auth-source-search' calls for all possible use cases. The user can > say, for instance: > > machine mysmtpserver.com login tzz password mypassword keyfile "~/.keyfile" Yes, that makes a whole lot more sense. Hm... but on what level would this be checked? `open-network-stream' could do that, but if the auth file is a .gpg file, it'll have to ask for a password just to check whether there is a keyfile, which, in 99.99% of the cases there won't be. Uhm. How did that discussion about non-secret credentials go? :-) It wouldn't be backwards-compatible in any case, though -- anybody mind if I break that for smtpmail.el? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/