summaryrefslogtreecommitdiff
path: root/lib/security.c
diff options
context:
space:
mode:
authorJulien Chaffraix <julien.chaffraix@gmail.com>2010-09-26 22:35:00 -0700
committerJulien Chaffraix <julien.chaffraix@gmail.com>2010-09-28 22:05:24 -0700
commite3811ed7c34ed1818dc246af54460fea0fc52c02 (patch)
tree01a2f14c15034d2db39e7938e2e7bd79031a45bd /lib/security.c
parentdacc44ddc2920cb1b2e3550bc803f7521c3166fa (diff)
downloadcurl-e3811ed7c34ed1818dc246af54460fea0fc52c02.tar.gz
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.
Diffstat (limited to 'lib/security.c')
-rw-r--r--lib/security.c11
1 files changed, 0 insertions, 11 deletions
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)