- 15 Nov, 2021 1 commit
-
-
Peter Pettersson committed
-
- 24 Aug, 2021 1 commit
-
-
Provide an interface around OpenSSL to dynamically load the libraries and symbols, so that users can distribute a libgit2 library that is not linked directly against OpenSSL. This enables users to target multiple distributions with a single binary. This mechanism is optional and disabled by default. Configure cmake with -DUSE_HTTPS=OpenSSL-Dynamic to use it.
Edward Thomson committed
-
- 27 Nov, 2020 1 commit
-
-
Edward Thomson committed
-
- 24 Jan, 2020 1 commit
-
-
Move the redirect handling into `git_net_url` for consistency.
Edward Thomson committed
-
- 10 Jun, 2019 1 commit
-
-
"Connection data" is an imprecise and largely incorrect name; these structures are actually parsed URLs. Provide a parser that takes a URL string and produces a URL structure (if it is valid). Separate the HTTP redirect handling logic from URL parsing, keeping a `gitno_connection_data_handle_redirect` whose only job is redirect handling logic and does not parse URLs itself.
Edward Thomson committed
-
- 09 Nov, 2018 1 commit
-
-
Constant strings and logic for HTTP(S) default ports were starting to be spread throughout netops.c. Instead of duplicating this again to determine if a Host header should include the port, move the default port constants and logic into an internal method in netops.{c,h}.
Rick Altherr committed
-
- 19 Mar, 2018 2 commits
-
-
Edward Thomson committed
-
Steven King Jr committed
-
- 03 Jul, 2017 1 commit
-
-
Next to including several files, our "common.h" header also declares various macros which are then used throughout the project. As such, we have to make sure to always include this file first in all implementation files. Otherwise, we might encounter problems or even silent behavioural differences due to macros or defines not being defined as they should be. So in fact, our header and implementation files should make sure to always include "common.h" first. This commit does so by establishing a common include pattern. Header files inside of "src" will now always include "common.h" as its first other file, separated by a newline from all the other includes to make it stand out as special. There are two cases for the implementation files. If they do have a matching header file, they will always include this one first, leading to "common.h" being transitively included as first file. If they do not have a matching header file, they instead include "common.h" as first file themselves. This fixes the outlined problems and will become our standard practice for header and source files inside of the "src/" from now on.
Patrick Steinhardt committed
-
- 08 Sep, 2015 1 commit
-
-
Matt Burke committed
-
- 04 Sep, 2015 1 commit
-
-
Matt Burke committed
-
- 23 Apr, 2015 1 commit
-
-
This is what it's meant all along, but now we actually have multiple implementations, it's clearer to use the name of the library.
Carlos Martín Nieto committed
-
- 10 Dec, 2014 2 commits
-
-
Most of the network-facing facilities have been copied to the socket and openssl streams. No code now uses these functions directly anymore, so we can now remove them.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
- 24 Sep, 2014 1 commit
-
-
Ciro Santilli committed
-
- 16 Sep, 2014 1 commit
-
-
This option make it easy to ignore anything about the server we're connecting to, which is bad security practice. This was necessary as we didn't use to expose detailed information about the certificate, but now that we do, we should get rid of this. If the user wants to ignore everything, they can still provide a callback which ignores all the information passed.
Carlos Martín Nieto committed
-
- 12 Jun, 2014 1 commit
-
-
OpenSSL's tests init everything in the main thread, so let's do that.
Carlos Martín Nieto committed
-
- 26 Apr, 2014 1 commit
-
-
This kind of stuff should have unit tests, even if it's just to show what we expect to match successfully.
Carlos Martín Nieto committed
-
- 04 Nov, 2013 1 commit
-
-
Ben Straub committed
-
- 26 Sep, 2013 2 commits
-
-
...and have that call manage replaced memory in the output structure.
Ben Straub committed -
Ben Straub committed
-
- 31 Jan, 2013 2 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
- 08 Jan, 2013 1 commit
-
-
Edward Thomson committed
-
- 07 Nov, 2012 1 commit
-
-
Eduardo Bart committed
-
- 06 Nov, 2012 1 commit
-
-
inet_pton is available only in windows vista or later, fixed the issue by reimplementing it using WSAStringToAddress
Eduardo Bart committed
-
- 01 Nov, 2012 1 commit
-
-
Philip Kelley committed
-
- 20 Oct, 2012 1 commit
-
-
The fetch code takes advantage of this to implement a progress callback every 100kb of transfer.
Ben Straub committed
-
- 30 Jul, 2012 2 commits
-
-
This allows us to add capabilitites to both at the same time, keeps them in sync and removes a lot of code. gitno_buffer now uses a callback to fill its buffer, allowing us to use the same interface for git and http (which uses callbacks).
Carlos Martín Nieto committed -
For the transition, http is going to keep its own logic until the git/common code catches up with the implied multi_ack that http has. This also has the side-effect of making the code cleaner and more correct regardingt he protocol.
Carlos Martín Nieto committed
-
- 24 Jul, 2012 1 commit
-
-
nulltoken committed
-
- 19 May, 2012 3 commits
-
-
This should help us free some resources, though the libraries do keep some buffers allocated regardless.
Carlos Martín Nieto committed -
Add specific functions that use OpenSSL instead of GnuTLS
Carlos Martín Nieto committed -
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.
Carlos Martín Nieto committed
-
- 05 May, 2012 1 commit
-
-
gitno_connect() can return an error or socket, which is fine on most platforms where sockets are file descriptors (signed int), but on Windows, SOCKET is an unsigned type, which is problematic when we are trying to test if the socket was actually a negative error code. This fix seperates the error code and socket in gitno_connect(), and fixes the error handling in do_connect() functions to compensate. It appears that git_connect() and the git-transport do_connect() functions had bugs in the non-windows cases too (leaking sockets, and not properly reporting connection error, respectively) so I went ahead and fixed those too.
Scott J. Goldman committed
-
- 17 Apr, 2012 1 commit
-
-
This fixes all the warnings on win64 except those in deps, which come from the regex code.
Russell Belfer committed
-
- 13 Feb, 2012 1 commit
-
-
Signed-off-by: schu <schu-github@schulog.org>
schu committed
-
- 12 Oct, 2011 1 commit
-
-
As we don't know the length of the message we want to send to the other end, we send a chunk size before each message. In later versions, sending the wants might benefit from batching the lines together. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Carlos Martín Nieto committed
-
- 30 Sep, 2011 2 commits
-
-
Winsock wants us to use closesocket() instead of close(), so introduce the gitno_close function, which does the right thing. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Carlos Martín Nieto committed -
Windows wants us to initialise the networking DLL before we're allowed to send data through a socket. Call WSASetup and WSACleanup if GIT_WIN32 is defined. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Carlos Martín Nieto committed
-