diff options
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 45117c709..d89dec673 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -273,20 +273,10 @@ CURLcode Curl_readrewind(struct connectdata *conn) return CURLE_OK; } -#ifdef USE_SSLEAY -/* FIX: this is nasty OpenSSL-specific code that really shouldn't be here */ static int data_pending(struct connectdata *conn) { - if(conn->ssl[FIRSTSOCKET].handle) - /* SSL is in use */ - return SSL_pending(conn->ssl[FIRSTSOCKET].handle); - - return 0; /* nothing */ + return Curl_ssl_data_pending(conn, FIRSTSOCKET); } -#else -/* non-SSL never have pending data */ -#define data_pending(x) 0 -#endif #ifndef MIN #define MIN(a,b) (a < b ? a : b) |