]> code.delx.au - gnu-emacs/commit
Implement asynch TLS negotiation
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 16 Feb 2016 04:56:56 +0000 (15:56 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 16 Feb 2016 04:56:56 +0000 (15:56 +1100)
commitac6e085cf6b26257cfe181f17828432d414cb3a6
tree9d382588ce869a2b816373e278b2805ffbb90f59
parentc43bb7f136ab9e9439a4b5c045040a12cbe8bda0
Implement asynch TLS negotiation

* src/gnutls.c (gnutls_try_handshake): Factor out into its own
function.
(emacs_gnutls_handshake): Use it.
(emacs_gnutls_read): Just return instead of retrying the handshake.

* src/process.c (finish_after_tls_connection): Factor out
into its own function.
(connect_network_socket): Use it.
(wait_reading_process_output): Retry TLS handshakes.
(wait_reading_process_output): Defer sentinel until TLS completes.
src/gnutls.c
src/gnutls.h
src/process.c