summaryrefslogtreecommitdiff
path: root/src/curl_stream.c
Commit message (Collapse)AuthorAgeFilesLines
* curl_stream: fix unused cert infosPatrick Steinhardt2016-02-081-0/+1
| | | | | When copying contents of the cURL certiinfo we duplicate the data but forget to actually put it into the vector.
* Free allocated pointer to curl stream on errorBob Kuo2016-01-161-1/+4
|
* curl: use the most secure auth method for the proxycmn/curl-proxyauth-anyCarlos Martín Nieto2015-08-061-0/+1
| | | | | | | When curl uses a proxy, it will only use Basic unless we prompt it to try to use the most secure on it has available. This is something which git did recently, and it seems like a good idea.
* git_cert: child types use proper base typeEdward Thomson2015-07-101-7/+7
|
* curl: remove the encrypted param to the constructorCarlos Martín Nieto2015-06-241-11/+3
| | | | | We do not want libcurl to perform the TLS negotiation for us, so we don't need to pass this option.
* curl: extract certificate informationCarlos Martín Nieto2015-06-241-3/+34
| | | | | | The information is exposed by curl for some crypto libraries in the form of name:content strings. We can't do much more than return this information.
* stream: add support for setting a proxyCarlos Martín Nieto2015-06-241-0/+15
| | | | | | | | If the stream claims to support this feature, we can let the transport set the proxy. We also set HTTPPROXYTUNNEL option so curl can create a tunnel through the proxy which lets us create our own TLS session (if needed).
* Implement a curl streamCarlos Martín Nieto2015-06-241-0/+219
cURL has a mode in which it acts a lot like our streams, providing send and recv functions and taking care of the TLS and proxy setup for us. Implement a new stream which uses libcurl instead of raw sockets or the TLS libraries directly. This version does not support reporting certificates or proxies yet.