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: Testing the gnutls support Date: Fri, 01 Apr 2011 17:39:21 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87r5g0x0fd.fsf@lifelogs.com> <83mxqnmqqy.fsf@gnu.org> <8762xalkgg.fsf@lifelogs.com> <87ipv3krh1.fsf@lifelogs.com> <871v1m6nu8.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301673003 14425 80.91.229.12 (1 Apr 2011 15:50:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2011 15:50:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 01 17:49:58 2011 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.69) (envelope-from ) id 1Q5gbb-00072B-RS for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2011 17:49:58 +0200 Original-Received: from localhost ([127.0.0.1]:50375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5gbV-0007h8-TO for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2011 11:49:41 -0400 Original-Received: from [140.186.70.92] (port=37079 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5gRu-00046u-Al for emacs-devel@gnu.org; Fri, 01 Apr 2011 11:39:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5gRh-0005nN-Ip for emacs-devel@gnu.org; Fri, 01 Apr 2011 11:39:37 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5gRh-0005n7-6P for emacs-devel@gnu.org; Fri, 01 Apr 2011 11:39:33 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q5gRf-0000yN-KL for emacs-devel@gnu.org; Fri, 01 Apr 2011 17:39:31 +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 ; Fri, 01 Apr 2011 17:39:31 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Apr 2011 17:39:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUHBQYLCAkNCQoLBwgQ DAwIBgcFAgQ8PDEaDO44AAACdklEQVQ4jW1TTW+cMBAdqTK9ZuzQnjE0PRvLP6CILlcj1smVVsS5 JtUq/P2+MUkVJR0tCztv3odtlvT4oYbBjiPZ/wDWdgC6DwD6Atg3nOmy4zNO0yCMt2LD0NkBhIPx TmyQqyOry8A7AKmaYiVIJzkta7b9NaRwE8pQAPSNk44Fw0EMNZRLO++96zsBjGXb2JdybLzR1wKY Rfd9wwI1jXfGcOsslMmxdszGyHzLvjUN97IAWvzsHXtm3VgDfczAA4BJs9ccFqG13huPXIUR0rK4 lBZfswkAWouUssCUknfla/zmDVss8gDASKGOwZkBcRAcVv0BfFpCimmx8Da+QW4te0cijz4AUy/e t8dCh+KxhBhVZG8AcPMPiCpFMFLwdVi8dA9zGQcQVfDAfCGMhzkcwFB4CME0DQ5ukLckyHQUVMoj re6ERB5tSFHxSTMAlgAj1RimiHCqUPoe2y5GVEMqEpEioSXDztkWR0MSikrJLTnvXN80jumYp/UA Uz0zFhRVDQZ+V/RSsF+SwWwC4w1BNmjGuxGrmqIq7bVAiMzMdQqpfvVQr0osp98wv6Q55FZCH4ff HQCtVb6nfB8hBwY8cL5agCpnyuu0X9GqWErLlqCVpdYf58d1VWFmI1gn49LG9fs5r6q4Yxs1VRug dT/lvD3njJ2cJTFfU4XBvJ0vA93dYAIvE7C5/k45P0Jm2nf5wyLFlJSaUxIAjK876mnabzLdXcm+ QEqAbf+53+2XvD3l/PlEMKq5ANP+dBn3vcpbzg+nTEohLoBfMLiMsIFofvhyCwpPWN/zA1qXbRIb SN2e1nXuLoT4E+Qn6e/ycHuWLH/+AmgM+ImA0vcAAAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Various's _Every Noise Has a Note_: "Telescopes - DSM-IV axis 1307.46 (Night Terrors)" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:t7vlw0a0ReaEv6ZccUiAP4U4JMI= 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.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:138003 Archived-At: Ted Zlatanov writes: > After the connection fails, the code that uses gnutls.el can look at > `gnutls-rejected-certificates' (which will have the certificate and > enough information about the connection to figure out what it's for). > And it can then save some of those certificates and `gnutls-negotiate' > will pick them up. Right; that makes sense, I think. > So, from the proto-stream.el perspective, you would try the connection > and if it fails, look at `gnutls-rejected-certificates' for an entry > relevant to the connection you just failed to make. You would then ask > the user "do you want to accept certificate?" and show the info; if they > accept you'd save to ~/.emacs.d/certs/SERVER[.PORT].pem. Do we really need to save the certificate? Wouldn't just noting that we accepted the cert suffice? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen