From e3811ed7c34ed1818dc246af54460fea0fc52c02 Mon Sep 17 00:00:00 2001 From: Julien Chaffraix Date: Sun, 26 Sep 2010 22:35:00 -0700 Subject: security.c: Remove Curl_sec_fflush_fd. The current implementation would make us send wrong data on a closed socket. We don't buffer our data so the method can be safely removed. --- lib/security.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/security.c') diff --git a/lib/security.c b/lib/security.c index 5becb0c87..303a1bec6 100644 --- a/lib/security.c +++ b/lib/security.c @@ -345,17 +345,6 @@ static ssize_t sec_write(struct connectdata *conn, curl_socket_t fd, return tx; } -/* FIXME: fd should be a curl_socket_t */ -int Curl_sec_fflush_fd(struct connectdata *conn, int fd) -{ - if(conn->data_prot == prot_clear) - return 0; - - /* Force a flush by trying to send no data */ - do_sec_send(conn, fd, NULL, 0); - return 0; -} - /* Matches Curl_send signature */ static ssize_t sec_send(struct connectdata *conn, int sockindex, const void *buffer, size_t len, CURLcode *err) -- cgit v1.2.3