1. 10 Jun, 2018 1 commit
  2. 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
  3. 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
  4. 29 Dec, 2017 1 commit
  5. 26 Nov, 2017 1 commit
  6. 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
  7. 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
  8. 01 Mar, 2017 1 commit
  9. 06 Feb, 2017 2 commits
  10. 21 Jan, 2017 1 commit
  11. 16 Jan, 2017 1 commit
  12. 29 Dec, 2016 1 commit
  13. 07 Jun, 2016 1 commit
  14. 19 Apr, 2016 4 commits
  15. 03 Mar, 2016 1 commit
  16. 16 Feb, 2016 1 commit
  17. 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
  18. 01 Dec, 2015 1 commit
  19. 12 Nov, 2015 1 commit
  20. 25 Sep, 2015 1 commit
  21. 10 Sep, 2015 1 commit
  22. 08 Sep, 2015 2 commits
  23. 10 Jul, 2015 1 commit
  24. 30 Jun, 2015 1 commit
  25. 19 Mar, 2015 1 commit
  26. 18 Mar, 2015 1 commit
  27. 16 Mar, 2015 2 commits
  28. 13 Feb, 2015 1 commit
  29. 09 Dec, 2014 1 commit
  30. 03 Dec, 2014 1 commit
  31. 27 Oct, 2014 1 commit
  32. 22 Sep, 2014 1 commit