1. 19 Mar, 2018 2 commits
  2. 23 Oct, 2017 1 commit
  3. 20 Oct, 2017 1 commit
  4. 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
  5. 02 May, 2017 2 commits
  6. 29 Dec, 2016 1 commit
  7. 03 Mar, 2016 1 commit
    • ssh: initialize libssh2 · 22f3d3aa
      We should have been doing this, but it initializes itself upon first
      use, which works as long as nobody's doing concurrent network
      operations. Initialize it on our init to make sure it's not getting
      initialized concurrently.
      Carlos Martín Nieto committed
  8. 28 Dec, 2015 1 commit
  9. 26 Dec, 2015 1 commit
  10. 22 Dec, 2015 1 commit
  11. 14 Aug, 2015 1 commit
  12. 03 Aug, 2015 1 commit
  13. 10 Jul, 2015 1 commit
  14. 09 Jun, 2015 1 commit
  15. 02 Jun, 2015 1 commit
  16. 27 May, 2015 2 commits
  17. 20 May, 2015 2 commits
  18. 18 Mar, 2015 1 commit
  19. 10 Dec, 2014 1 commit
  20. 27 Oct, 2014 2 commits
  21. 22 Sep, 2014 1 commit
  22. 16 Sep, 2014 8 commits
  23. 04 Sep, 2014 1 commit
    • ssh: store error message immediately after a failed agent call · 2dc399a8
      When the call to the agent fails, we must retrieve the error message
      just after the function call, as other calls may overwrite it.
      
      As the agent authentication is the only one which has a teardown and
      there does not seem to be a way to get the error message from a stored
      error number, this tries to introduce some small changes to store the
      error from the agent.
      
      Clearing the error at the beginning of the loop lets us know whether the
      agent has already set the libgit2 error message and we should skip it,
      or if we should set it.
      Carlos Martín Nieto committed
  24. 05 Aug, 2014 1 commit
  25. 16 Jul, 2014 1 commit
  26. 07 Jul, 2014 1 commit
  27. 03 Jul, 2014 1 commit
  28. 02 Jul, 2014 1 commit
    • ssh: libssh2_channel_write() behaves like send() · 0963716b
      When the stream writing function was written, it assume that
      libssh2_channel_write() would always write all of the data to the
      wire. This is only true for the first 32k of data, which it tries to
      fit into one ssh packet.
      
      Since it can perform short writes, call it in a loop like we do for
      send(), advancing the buffer offset.
      Carlos Martín Nieto committed