| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\
| |
| | |
Basic authentication for http and winhttp
|
| | |
|
| | |
|
|/
|
|
|
| |
inet_pton is available only in windows vista or later,
fixed the issue by reimplementing it using WSAStringToAddress
|
| |
|
|
|
|
|
| |
The fetch code takes advantage of this to implement a
progress callback every 100kb of transfer.
|
|
|
|
|
|
|
|
| |
SSL_get_error() allows to receive a result code for various SSL
operations. Depending on the return value (see man (3) SSL_get_error)
there might be additional information in the OpenSSL error queue. Return
the queued message if available, otherwise set an error message
corresponding to the return code.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Passing SSL_VERIFY_PEER makes OpenSSL shut down the connection if the
certificate is invalid, without giving us a chance to ignore that
error. Pass SSL_VERIFY_NONE and call SSL_get_verify_result if the user
wanted us to check.
When no CNs match, we used to jump to on_error which gave a bogus
error as that's for OpenSSL errors. Jump to cert_fail so we tell the
user that the error came from checking the certificate.
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
src/netops.c
src/netops.h
src/oid.c
|
| | |
|
| |
| |
| |
| |
| | |
SSL isn't the only way that a transport can be encrypted. The new name
will make it easier to merge the SSH support.
|
| |
| |
| |
| |
| | |
Using the callbacks makes it clearer and reduces the amount of #ifdefs
and ifs and we need in the code.
|
|/
|
|
|
|
|
|
| |
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).
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
http://github.com/libgit2/libgit2/pull/766
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Needs AmigaOS.cmake now from CMake package at OS4Depot, or contents below:
--8<--
SET(AMIGA 1)
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
--8<--
|
| | |
|
| | |
|
|/
|
|
| |
Errors were due to not including winsock2 early enough.
|
| |
|
| |
|
|\
| |
| | |
Add HTTPS support
|
| |
| |
| |
| |
| | |
Sometimes it's useful not to perform the check. Allow it to be
configurable.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
It's too much work for now to redo everything.
Move the ssl context struct to transport.h
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
This should help us free some resources, though the libraries do keep
some buffers allocated regardless.
|
| |
| |
| |
| | |
Add specific functions that use OpenSSL instead of GnuTLS
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
Otherwise we can't cross-compile on Linux.
|
|
|
|
|
|
|
| |
Clear the error in pkt when we notice that the remote is starting to
send the packfile.
Fix the format string for Windows networking errors.
|
|
|
|
|
|
|
|
|
| |
Previously, it was defined in netops.c, but it's also needed in one of the
clar tests, so I figured we might as well just make it global for the
whole project.
Without it, the mingw32 linker won't resolve GetProcessId() (called from
the core/errors.c clar test) because of some conditionals in windows.h.
|
|\
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
src/netops.c
src/netops.h
src/transports/http.c
tests-clar/clar
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
This fixes all the warnings on win64 except those in deps, which
come from the regex code.
|
| | |
|
|/ |
|
|
|
|
| |
Signed-off-by: schu <schu-github@schulog.org>
|
|
|
|
|
| |
struct timeval is used in this file, which requires <sys/time.h> to be
included.
|
|
|
|
|
| |
Ensure that all memory related functions (malloc, calloc, strdup, free,
etc) are using their respective `git__` wrappers.
|
|
|
|
|
|
| |
It was a bad idea.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|
|
|
|
| |
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
|
|
|
|
|
|
|
|
|
| |
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>
|