From bcca842e0d2b2a70b776cf888572739bda11dac7 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sat, 28 Jan 2017 19:45:52 +0100 Subject: polarssl: fix hangs This bugfix is similar to commit c111178bd4. --- lib/vtls/polarssl.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/vtls/polarssl.c') diff --git a/lib/vtls/polarssl.c b/lib/vtls/polarssl.c index 4bba3e3f2..1a9421d82 100644 --- a/lib/vtls/polarssl.c +++ b/lib/vtls/polarssl.c @@ -816,4 +816,12 @@ void Curl_polarssl_cleanup(void) (void)Curl_polarsslthreadlock_thread_cleanup(); } + +int Curl_polarssl_data_pending(const struct connectdata *conn, int sockindex) +{ + ssl_context *ssl = + (ssl_context *)&conn->ssl[sockindex].ssl; + return ssl->in_msglen != 0; +} + #endif /* USE_POLARSSL */ -- cgit v1.2.3