From 3239f059b82d2b20a76f7470d8c4a334755f25c4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 24 Jan 2007 17:19:08 +0000 Subject: moved the SSL pending function to the proper place and name --- lib/transfer.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'lib/transfer.c') 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) -- cgit v1.2.3