1. 24 Jan, 2019 1 commit
  2. 22 Jan, 2019 1 commit
  3. 06 Jan, 2019 2 commits
    • Windows is hard. · 321d19c1
      lhchavez committed
    • Fix a bunch of warnings · 7b453e7e
      This change fixes a bunch of warnings that were discovered by compiling
      with `clang -target=i386-pc-linux-gnu`. It turned out that the
      intrinsics were not necessarily being used in all platforms! Especially
      in GCC, since it does not support __has_builtin.
      
      Some more warnings were gleaned from the Windows build, but I stopped
      when I saw that some third-party dependencies (e.g. zlib) have warnings
      of their own, so we might never be able to enable -Werror there.
      lhchavez committed
  4. 28 Nov, 2018 1 commit
  5. 21 Nov, 2018 1 commit
    • transport: allow cred/cert callbacks to return GIT_PASSTHROUGH · a2e6e0ea
      Allow credential and certificate checking callbacks to return
      GIT_PASSTHROUGH, indicating that they do not want to act.
      Introduce this to support in both the http and ssh callbacks.
      Additionally, enable the same mechanism for certificate validation.
      
      This is most useful to disambiguate any meaning in the publicly exposed
      credential and certificate functions (`git_transport_smart_credentials`
      and `git_transport_smart_certificate_check`) but it may be more
      generally useful for callers to be able to defer back to libgit2.
      Edward Thomson committed
  6. 18 Oct, 2018 1 commit
  7. 30 Jul, 2018 1 commit
  8. 26 Jul, 2018 2 commits
  9. 20 Jul, 2018 1 commit
    • winhttp: retry erroneously failing requests · dc371e3c
      Early Windows TLS 1.2 implementations have an issue during key exchange
      with OpenSSL implementations that cause negotiation to fail with the
      error "the buffer supplied to a function was too small."
      
      This is a transient error on the connection, so when that error is
      received, retry up to 5 times to create a connection to the remote
      server before actually giving up.
      Edward Thomson committed
  10. 10 Jun, 2018 1 commit
  11. 27 Feb, 2018 3 commits
    • winhttp: enable TLS 1.2 on Windows 7 and earlier · 5ecb6220
      Versions of Windows prior to Windows 8 do not enable TLS 1.2 by default,
      though support may exist.  Try to enable TLS 1.2 support explicitly on
      connections.
      
      This request may fail if the operating system does not have TLS 1.2
      support - the initial release of Vista lacks TLS 1.2 support (though
      it is available as a software update) and XP completely lacks TLS 1.2
      support.  If this request does fail, the HTTP context is still valid,
      and still maintains the original protocol support.  So we ignore the
      failure from this operation.
      Edward Thomson committed
    • winhttp: include constants for TLS 1.1/1.2 support · 934e6a3b
      For platforms that do not define `WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1`
      and/or `WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2`.
      Edward Thomson committed
    • mingw: update TLS option flags · 8c8db980
      Include the constants for `WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1` and
      `WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2` so that they can be used by mingw.
      
      This updates both the `deps/winhttp` framework (for classic mingw) and
      adds the defines for mingw64, which does not use that framework.
      Edward Thomson committed
  12. 10 Feb, 2018 1 commit
    • http: standardize user-agent addition · ee6be190
      The winhttp and posix http each need to add the user-agent to their
      requests.  Standardize on a single function to include this so that we
      do not get the version numbers we're sending out of sync.
      
      Assemble the complete user agent in `git_http__user_agent`, returning
      assembled strings.
      
      Co-authored-by: Patrick Steinhardt <ps@pks.im>
      Edward Thomson committed
  13. 29 Dec, 2017 1 commit
  14. 26 Nov, 2017 1 commit
  15. 03 Jul, 2017 1 commit
    • Make sure to always include "common.h" first · 0c7f49dd
      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
  16. 08 Jun, 2017 1 commit
    • buffer: rely on `GITERR_OOM` set by `git_buf_try_grow` · 97eb5ef0
      The function `git_buf_try_grow` consistently calls `giterr_set_oom`
      whenever growing the buffer fails due to insufficient memory being
      available. So in fact, we do not have to do this ourselves when a call
      to any buffer-growing function has failed due to an OOM situation. But
      we still do so in two functions, which this patch cleans up.
      Patrick Steinhardt committed
  17. 01 Mar, 2017 1 commit
  18. 06 Feb, 2017 2 commits
  19. 21 Jan, 2017 1 commit
  20. 16 Jan, 2017 1 commit
  21. 29 Dec, 2016 1 commit
  22. 07 Jun, 2016 1 commit
  23. 19 Apr, 2016 4 commits
  24. 03 Mar, 2016 1 commit
  25. 16 Feb, 2016 1 commit
  26. 19 Jan, 2016 1 commit
    • winhttp: name mangle class / iid on mingw · 5c7f2f01
      Standard Windows type systems define CLSID_InternetSecurityManager
      and IID_IInternetSecurityManager, but MinGW lacks these definitions.
      As a result, we must hardcode these definitions ourselves.  However,
      we should not use a public struct with those names, lest another
      library do the same thing and consumers cannot link to both.
      Edward Thomson committed
  27. 01 Dec, 2015 1 commit
  28. 12 Nov, 2015 1 commit
  29. 25 Sep, 2015 1 commit
  30. 10 Sep, 2015 1 commit
  31. 08 Sep, 2015 2 commits