diff options
author | Jerome Vouillon <vouillon@pps.jussieu.fr> | 2010-04-16 22:43:01 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 22:43:01 +0200 |
commit | c2888604d7ead19473b5621f8f2edab60fc418de (patch) | |
tree | c8ce3f5e8ad594f03c34d38f176b351d500fb503 /lib/gtls.h | |
parent | 6632d957e7d658566288406276dc98669e8228c7 (diff) |
GnuTLS: make the connection phase non-blocking
When multi interface is used, the SSL handshake is no longer
blocking when GnuTLS is used.
Diffstat (limited to 'lib/gtls.h')
-rw-r--r-- | lib/gtls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gtls.h b/lib/gtls.h index 9fe618a32..da3489bc3 100644 --- a/lib/gtls.h +++ b/lib/gtls.h @@ -27,6 +27,9 @@ int Curl_gtls_init(void); int Curl_gtls_cleanup(void); CURLcode Curl_gtls_connect(struct connectdata *conn, int sockindex); +CURLcode Curl_gtls_connect_nonblocking(struct connectdata *conn, + int sockindex, + bool *done); /* tell GnuTLS to close down all open information regarding connections (and thus session ID caching etc) */ @@ -52,6 +55,7 @@ int Curl_gtls_seed(struct SessionHandle *data); #define curlssl_init Curl_gtls_init #define curlssl_cleanup Curl_gtls_cleanup #define curlssl_connect Curl_gtls_connect +#define curlssl_connect_nonblocking Curl_gtls_connect_nonblocking #define curlssl_session_free(x) Curl_gtls_session_free(x) #define curlssl_close_all Curl_gtls_close_all #define curlssl_close Curl_gtls_close |