1. 03 Sep, 2016 1 commit
  2. 30 Jan, 2015 1 commit
  3. 26 Jan, 2015 1 commit
  4. 30 Oct, 2014 1 commit
    • David Woodhouse's avatar
      Fix thread-unsafe setenv() usage · 7b8fd002
      David Woodhouse authored
      Since moving the tunnel handling into libopenconnect too, we've been
      unsafely using setenv() before spawning vpnc-script. We mustn't do that
      in a multi-threaded environment.
      
      So store up all the variables in a list, and apply them after fork(). Or
      on Windows, build up the environment block to pass to CreateProcess()
      manually.
      Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
      7b8fd002
  5. 29 Oct, 2014 1 commit
  6. 28 Oct, 2014 2 commits
  7. 15 Sep, 2014 1 commit
  8. 22 Aug, 2014 1 commit
  9. 29 Jul, 2014 1 commit
  10. 28 Jul, 2014 2 commits
  11. 10 Jul, 2014 1 commit
  12. 03 Jul, 2014 1 commit
    • David Woodhouse's avatar
      Add strndup() compat function for OSX · c4e0ed39
      David Woodhouse authored
      The comment in connect_https_socket() suggests that I didn't use strndup()
      there because Solaris lacks it. I blithely went ahead and used it in the
      NTLM code though, and Solaris 11 *does* seem to have it. (My Solaris 10 VM
      no longer boots, and I can't bring myself to care.)
      
      But OSX (10.6.8 Snow Leopard) also seems to lack strndup(). So add a
      compat implementation of it rather than just trying to remember not to
      use it.
      Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
      c4e0ed39
  13. 01 Jul, 2014 1 commit
  14. 23 Jun, 2014 1 commit
  15. 12 Feb, 2014 1 commit
    • David Woodhouse's avatar
      Fix overflow warning in dumb_socketpair() on Win64 · bdeefa54
      David Woodhouse authored
      The SOCKET type is a pointer, although in practice what's returned really
      does look like a file descriptor. It's a low-valued integer such as 0x23
      under Wine, 0x54 under Windows 7 in my testing.
      
      The INVALID_SOCKET error return from socket() is defined as (SOCKET)(~0),
      or 0xFFFFFFFFFFFFFFFF on Win64. Thus we get errors when assigning it to
      an int in the socks[] array. So use -1 here instead.
      Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
      bdeefa54
  16. 11 Feb, 2014 2 commits
  17. 10 Feb, 2014 2 commits
  18. 06 Feb, 2014 8 commits
  19. 05 Feb, 2014 2 commits
  20. 19 Sep, 2013 1 commit
    • David Woodhouse's avatar
      Include string.h where needed · dadcec97
      David Woodhouse authored
      This fixes the Solaris build; reported by "Rodney".
      
      Also clean up #includes in compat.c; there's no need for them to be
      hidden within the various ifdef blocks. Leave <sys/time.h> where it was,
      just in case it's problematic on some platform. The rest are already
      included unconditionally in other files, so should be fine.
      Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
      dadcec97
  21. 10 Mar, 2013 3 commits
  22. 18 Feb, 2013 1 commit
  23. 13 Oct, 2012 1 commit
  24. 03 May, 2012 1 commit
  25. 19 Apr, 2012 2 commits