- 30 Apr, 2018 1 commit
-
-
This is the "OpenSSL available" global init function after all
Etienne Samson committed
-
- 03 Apr, 2018 6 commits
-
-
In order to further avoid using ifdef's in our code flow, provide the function `OPENSSL_init_ssl` in case we are using the legacy OpenSSL API.
Patrick Steinhardt committed -
By now, we have several locations where we are checking the version of OpenSSL to determine whether we can use the new "modern" API or need to use the pre-1.1 legacy API. As we have multiple implementations of OpenSSL with the rather recent libressl implementation, these checks need to honor versions of both implementations, which is rather tedious. Instead, we can just check once for the correct versions and define `OPENSSL_LEGACY_API` in case we cannot use the modern API.
Patrick Steinhardt committed -
OpenSSL version 1.1 has broken its API in quite a few ways. To avoid having to use ifdef's everywhere, we have implemented the BIO functions added in version 1.1 ourselves in case we are using the legacy API. We were implementing them in the header file, though, which doesn't make a lot of sense, since these functions are only ever being used the the openssl stream implementation. Move these functions to the implementation file and mark them static.
Patrick Steinhardt committed -
Fix build with LibreSSL 2.7
Patrick Steinhardt committed -
appveyor: workaround for intermittent test failures
Patrick Steinhardt committed -
sha1dc: update to fix errors with endianess
Patrick Steinhardt committed
-
- 02 Apr, 2018 1 commit
-
-
LibreSSL 2.7 adds OpenSSL 1.1 API Signed-off-by: Bernard Spil <brnrd@FreeBSD.org>
Bernard Spil committed
-
- 30 Mar, 2018 1 commit
-
-
submodule: check index for path and prefix before adding submodule
Patrick Steinhardt committed
-
- 29 Mar, 2018 4 commits
-
-
odb: mempack: fix leaking objects when freeing mempacks
Edward Thomson committed -
Our CI builds have intermittent failures in our online tests, e.g. with the message "A provided buffer was too small". This is not a programming error in libgit2 but rather an error in the SChannel component of Windows. Under certain circumstances involving Diffie-Hellman key exchange, SChannel is unable to correctly handle input from the server. This bug has already been fixed in recent patches for Windows 10 and Windows Server 2016, but they are not yet available for AppVeyor. Manually pamper over that issue by disabling all ciphersuites using DHE via the registry. While this disables more ciphers than necessary, we really don't care for that at all but just want to avoid build failures due to that bug. See [1], [2] or [3] for additional information. 1: https://github.com/aws/aws-sdk-cpp/issues/671 2: https://github.com/dotnet/corefx/issues/7812 3: https://support.microsoft.com/en-us/help/2992611/ms14-066-vulnerability-in-schannel-could-allow-remote-code-execution-n
Patrick Steinhardt committed -
There are multiple references to undefined functions in the Microsoft builds. Add headers to make them known.
Patrick Steinhardt committed -
When a ODB mempack gets free'd, we take no measures at all to free its contents, most notably the objects added to the database, resulting in a memory leak. Call `git_mempack_reset` previous to freeing the ODB structures themselves, which takes care of releasing all associated data structures.
Patrick Steinhardt committed
-
- 28 Mar, 2018 3 commits
-
-
This updates the version of SHA1DC to c3e1304ea3.
bgermann committed -
Carson Howard committed
-
types: remove unused git_merge_result
Patrick Steinhardt committed
-
- 27 Mar, 2018 10 commits
-
-
`git_merge_result` is currently unused in the codebase and generates a blank page in the [documentation](https://libgit2.github.com/libgit2/#HEAD/type/git_merge_result).
Carson Howard committed -
Carson Howard committed
-
Carson Howard committed
-
Carson Howard committed
-
Carson Howard committed
-
Carson Howard committed
-
Carson Howard committed
-
Carson Howard committed
-
submodule: check path and prefix before adding submodule submodule: fix test errors
Carson Howard committed -
checkout: change default strategy to SAFE
Edward Thomson committed
-
- 26 Mar, 2018 2 commits
-
-
As per #4200, our default is quite surprising to users that expect checkout to just "do the thing".
Etienne Samson committed -
Add myself to git.git-authors
Patrick Steinhardt committed
-
- 23 Mar, 2018 3 commits
-
-
odb: fix writing to fake write streams
Edward Thomson committed -
In commit 7ec7aa4a (odb: assert on logic errors when writing objects, 2018-02-01), the check for whether we are trying to overflowing the fake stream buffer was changed from returning an error to raising an assert. The conversion forgot though that the logic around `assert`s are basically inverted. Previously, if the statement stream->written + len > steram->size evaluated to true, we would return a `-1`. Now we are asserting that this statement is true, and in case it is not we will raise an error. So the conversion to the `assert` in fact changed the behaviour to the complete opposite intention. Fix the assert by inverting its condition again and add a regression test.
Patrick Steinhardt committed -
Our mempack ODB backend has no test coverage at all right now. Add a simple test suite to at least have some coverage of the most basic operations on the ODB.
Patrick Steinhardt committed
-
- 20 Mar, 2018 3 commits
-
-
online tests: update auth for bitbucket test
Edward Thomson committed -
Update the settings to use a specific read-only token for accessing our test repositories in Bitbucket.
Edward Thomson committed -
Refactor `gitno_extract_url_parts`
Edward Thomson committed
-
- 19 Mar, 2018 6 commits
-
-
Edward Thomson committed
-
RFC 3986 says that hostnames can be percent encoded. Percent decode hostnames in our URLs.
Edward Thomson committed -
Edward Thomson committed
-
Now that we can decode percent-encoded strings as part of `git_buf`s, use that decoder in `gitno_extract_url_parts`.
Edward Thomson committed -
Use `git_buf_decode_percent` so that we can avoid allocating a temporary buffer.
Edward Thomson committed -
Introduce a function to take a percent-encoded string (URI encoded, described by RFC 1738) and decode it into a `git_buf`.
Edward Thomson committed
-