From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: Calling 'select' from emacs_gnutls_pull
Date: Sun, 17 Feb 2013 08:20:42 -0500 [thread overview]
Message-ID: <877gm76pqt.fsf@lifelogs.com> (raw)
In-Reply-To: 83pq00qcnm.fsf@gnu.org
On Sat, 16 Feb 2013 21:30:53 +0200 Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Ted Zlatanov <tzz@lifelogs.com>
>> 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.
EZ> OK. Any suggestions for yourserver.com that I could use?
https://www.gnu.org or https://www.google.com
EZ> Also, would there be any problems with certificates, and if so, where
EZ> can I find a bundle? (I'm quite ignorant about these issues, sorry.)
I believe by default, only warnings are printed about certificate
mismatch so you should be OK. Look at `gnutls-trustfiles' if you want
to customize the bundles.
Ted
next prev parent reply other threads:[~2013-02-17 13:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-16 11:38 Calling 'select' from emacs_gnutls_pull Eli Zaretskii
2013-02-16 15:55 ` Ted Zlatanov
2013-02-16 16:52 ` Eli Zaretskii
2013-02-16 18:00 ` Ted Zlatanov
2013-02-16 19:30 ` Eli Zaretskii
2013-02-17 13:20 ` Ted Zlatanov [this message]
2013-02-22 11:15 ` Claudio Bley
2013-02-22 12:36 ` Eli Zaretskii
2013-02-22 15:17 ` Claudio Bley
2013-02-22 16:02 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877gm76pqt.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.