summaryrefslogtreecommitdiff
path: root/src/gnutls.h
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2016-02-16 15:56:56 +1100
committerLars Ingebrigtsen <larsi@gnus.org>2016-02-16 15:56:56 +1100
commitac6e085cf6b26257cfe181f17828432d414cb3a6 (patch)
tree9d382588ce869a2b816373e278b2805ffbb90f59 /src/gnutls.h
parentc43bb7f136ab9e9439a4b5c045040a12cbe8bda0 (diff)
downloademacs-ac6e085cf6b26257cfe181f17828432d414cb3a6.tar.gz
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.
Diffstat (limited to 'src/gnutls.h')
-rw-r--r--src/gnutls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gnutls.h b/src/gnutls.h
index 8e879c168bd..cb521350b9d 100644
--- a/src/gnutls.h
+++ b/src/gnutls.h
@@ -84,6 +84,7 @@ extern void emacs_gnutls_transport_set_errno (gnutls_session_t state, int err);
#endif
extern Lisp_Object emacs_gnutls_deinit (Lisp_Object);
extern Lisp_Object emacs_gnutls_global_init (void);
+extern int gnutls_try_handshake (struct Lisp_Process *p);
#endif