From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Calling 'select' from emacs_gnutls_pull Date: Sat, 16 Feb 2013 21:30:53 +0200 Message-ID: <83pq00qcnm.fsf@gnu.org> References: <83wqu8qyik.fsf@gnu.org> <87fw0w6yny.fsf@lifelogs.com> <83txpcqjzs.fsf@gnu.org> <87bobk6sv9.fsf@lifelogs.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1361043058 18717 80.91.229.3 (16 Feb 2013 19:30:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Feb 2013 19:30:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 16 20:31:20 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U6nTj-00089y-Tj for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2013 20:31:20 +0100 Original-Received: from localhost ([::1]:36530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6nTQ-00081K-0m for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2013 14:31:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6nTN-00081F-H3 for emacs-devel@gnu.org; Sat, 16 Feb 2013 14:30:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6nTI-0006p5-W5 for emacs-devel@gnu.org; Sat, 16 Feb 2013 14:30:57 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:53160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6nTI-0006nm-G3 for emacs-devel@gnu.org; Sat, 16 Feb 2013 14:30:52 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MIB00000VCYZX00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sat, 16 Feb 2013 21:30:51 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MIB000H5VJEZL10@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sat, 16 Feb 2013 21:30:50 +0200 (IST) In-reply-to: <87bobk6sv9.fsf@lifelogs.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:157087 Archived-At: > From: Ted Zlatanov > Date: Sat, 16 Feb 2013 13:00:58 -0500 > > EZ> Thanks. It would be good if you (or someone else) could describe a > EZ> simple setup for reading stuff via GnuTLS from some URL, which I could > EZ> then try on my machine under a debugger. > > Sure. It's actually quite simple to open a SSL connection to the HTTP/S > port (the SERVICE parameter is either a string or an integer): > > #+begin_src lisp > (open-gnutls-stream "tls" "tls-buffer" "yourserver.com" "https") > #+end_src > > If GnuTLS support is enabled, opening any SSL connection with the > `url-*' function should do it too... it's the default transport. > > You can also call `gnutls-negotiate' directly, see `gnutls.el' for the > details. OK. Any suggestions for yourserver.com that I could use? Also, would there be any problems with certificates, and if so, where can I find a bundle? (I'm quite ignorant about these issues, sorry.) Thanks.