summaryrefslogtreecommitdiff
path: root/src/pkt.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-05-01 00:05:25 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-05-19 17:50:52 +0200
commit66024c7cbcbae3a75d0b0426993d8ee5fa5f9dfb (patch)
tree942b12533fe7f158679c0a2a3692494be849a855 /src/pkt.c
parentad5df35a47d56c3d716d7a56eac4aeb611987c11 (diff)
downloadlibgit2-66024c7cbcbae3a75d0b0426993d8ee5fa5f9dfb.tar.gz
http: add https support when GnuTLS is available
If it's not available, an error saying so will be returned when trying to use a https:// URL. This also unifies a lot of the network code to use git_transport in many places instead of an socket descriptor.
Diffstat (limited to 'src/pkt.c')
-rw-r--r--src/pkt.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pkt.c b/src/pkt.c
index 95430ddfc..88510f4b1 100644
--- a/src/pkt.c
+++ b/src/pkt.c
@@ -281,12 +281,6 @@ int git_pkt_buffer_flush(git_buf *buf)
return git_buf_put(buf, pkt_flush_str, strlen(pkt_flush_str));
}
-int git_pkt_send_flush(GIT_SOCKET s)
-{
-
- return gitno_send(s, pkt_flush_str, strlen(pkt_flush_str), 0);
-}
-
static int buffer_want_with_caps(git_remote_head *head, git_transport_caps *caps, git_buf *buf)
{
char capstr[20];