Rework the mechanisms for async GnuTLS connections
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 31 Jan 2016 01:32:21 +0000 (02:32 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 31 Jan 2016 01:32:21 +0000 (02:32 +0100)
commitcecf6c9ac58ecd9ea251241a6b8a18e0e01dbc2a
tree3aeb6ebaa3f1418f48a99502107f1dae2703dd11
parent1f71df7aacf15dbf242c74a4b7a7ac8fe0984a3c
Rework the mechanisms for async GnuTLS connections

* lisp/net/gnutls.el (open-gnutls-stream): Compute the
gnutls-boot parameters and pass them to the process object.
(gnutls-negotiate): New parameter :return-keywords that won't
connect to anything, just compute the keywords.

* lisp/url/url-http.el (url-http): Revert async TLS sentinel
hack, which is no longer necessary.

* src/gnutls.c (Fgnutls_asynchronous_parameters): Rename from
gnutls-mark-process.

* src/process.c (connect_network_socket): If we're connecting to
an asynchronous TLS socket, complete the GnuTLS boot sequence here.

* src/process.h: New parameter gnutls_async_parameters.
doc/misc/emacs-gnutls.texi
lisp/net/gnutls.el
lisp/url/url-http.el
src/gnutls.c
src/process.c
src/process.h