1. 22 Nov, 2021 3 commits
    • Ole André Vadla Ravnås's avatar
      test-io-stream-common: Remove dead code · 389e7ab7
      Ole André Vadla Ravnås authored
      Due to off-by-one errors. Since the code added above now handles what
      this code tried to handle, we can go ahead and remove it.
      389e7ab7
    • Ole André Vadla Ravnås's avatar
      a13ac437
    • Fabrice Bellet's avatar
      conncheck: don't ignore local socket errors · 7bd11cf0
      Fabrice Bellet authored
      With this patch we ensure that local socket errors during connection
      establishment are properly transmitted to the connection check layer, so
      the related pair can be put in state failed when needed. The local
      socket errors we are interested in, are those occuring when the local
      source address cannot be bound anymore, because the underlying interface
      vanished for example.
      
      In particular, we don't ignore errors coming from g_socket_bind() with
      tcp active sockets, that perform a bind to *whatever* local address is
      available, in case it cannot bind to the specified address.
      
      This behaviour was demonstrated with the test-tcp example, that tried
      to bind to the IPv4 loopback address on a socket initially created for
      the IPv6 loopback.
      7bd11cf0
  2. 15 Nov, 2021 1 commit
    • Nirbheek Chauhan's avatar
      meson: Add agent include dir to uninstalled pkgconfig file · 5123cea3
      Nirbheek Chauhan authored
      Meson picks up the includedirs from the library target that it is
      building the pkgconfig file for. Since libnice's headers are split
      into the nice/ and agent/ subdirs, we need to add agent/ to
      include_directories: so that it's automatically added to the
      uninstalled pkgconfig file by Meson.
      5123cea3
  3. 03 Nov, 2021 1 commit
  4. 02 Nov, 2021 8 commits
  5. 01 Nov, 2021 4 commits
    • Fabrice Bellet's avatar
      agent: ensure suceeded and discovered pairs fail the same time · 01e2de64
      Fabrice Bellet authored
      This patch ensures that related succeeded-discovered pairs change to
      state failed simultaneously, to avoid leaving dangling pointers if one
      is freeed while the other is still in the conncheck list. Such
      transition is very rare, and only occurs in regular nomination mode,
      when the network conditions change between the time the pair is
      initially discovered and the time it is rechecked with the use-candidate
      flag.
      01e2de64
    • Xavier Claessens's avatar
      Fix error when crypto/ssl libs are found without pkg-config · 574f44b4
      Xavier Claessens authored
      In that case crypto_dep is a list and we can't call .found() method.
      574f44b4
    • Juan Navarro's avatar
      agent: Unify constructors into nice_agent_new_full · bddeefdf
      Juan Navarro authored
      Instead of having 3 independent implementations, make the simpler
      versions delegate into the full one.
      
      The simplest constructor needs to pass "no option", for which no
      constant exists in the NiceAgentOption enum. Thus the new
      NICE_AGENT_OPTION_NONE constant is added to reflect this possibility.
      bddeefdf
    • Ole André Vadla Ravnås's avatar
      Use native crypto support on Windows by default · 48a8a498
      Ole André Vadla Ravnås authored
      As we only need a few primitives there isn't much OS-specific code
      needed, and for applications that don't already depend on OpenSSL or
      GnuTLS it simplifies the build process quite a lot.
      
      Note that we use the vintage WinCrypt APIs as the Cryptography Next
      Generation APIs are only available on Vista and newer.
      48a8a498
  6. 04 Oct, 2021 1 commit
    • Fabrice Bellet's avatar
      component: reset the stun agent on ice restart · 47a96334
      Fabrice Bellet authored
      The stun agent may contain references to the password previously stored
      in some remote candidates, freeed by nice_component_restart(), that were
      used by keep-alive stun requests. These stun replies may arrive later
      after ice has been restarted. Since the remote candidates are freeed
      when ice is restarted, the stun agent must be reset to get rid of these
      related references.
      47a96334
  7. 01 Oct, 2021 2 commits
  8. 19 Aug, 2021 3 commits
  9. 21 Jul, 2021 1 commit
  10. 20 Jul, 2021 6 commits
  11. 13 May, 2021 2 commits
  12. 11 May, 2021 1 commit
  13. 10 May, 2021 1 commit
  14. 09 May, 2021 1 commit
  15. 03 May, 2021 4 commits
  16. 20 Apr, 2021 1 commit
    • Fabrice Bellet's avatar
      agent: avoid leak of all turn refreshes when disposing the agent · caf9f1d8
      Fabrice Bellet authored
      With this patch we free all outstanding refreshes when the agent dispose
      method is called, even those that are in the way to be discarded
      asynchronously, when a stream is removed.
      
      We also make the final user callback of the refresh proces synchronous,
      so we don't have to deal with an heap use-after-free problem. This also
      requires to order some parts of code.
      caf9f1d8