1. 11 Jan, 2017 3 commits
    • Guillaume Roguez's avatar
      fix bad usage of shared_ptr as function argument · 66140094
      Guillaume Roguez authored
      Many function/method pass shared_ptr by copy and not by (const) reference.
      As explained here [1], if the smast pointer is not supposed to be modified
      and used as an output argument, it's a bad usage as we cause
      an uneeded copy. As this copy causes a memory lock this lead to CPU
      and memory cache lock bad usage.
      
      This patch converts all these by-value into by-const-reference
      on all shared_ptr arguments over the daemon sources.
      
      [1] https://herbsutter.com/2013/06/05/gotw-91-solution-smart-pointer-parameters/
      
      Change-Id: Ic1e68d93a6917f5e2865b6818b7c1210ff98b1a8
      66140094
    • Guillaume Roguez's avatar
      fix C++14 usage that brokes some builds · 490ed632
      Guillaume Roguez authored
      Some builds, like OSX and Debian 8, fails to build the daemon
      as a patch has recently introduced a C++14 feature, but we don't
      support C++14 by default on all platforms.
      
      This patch changes the code to require only a C++11 compiler.
      
      Change-Id: Ib858a6abddb610b6f94cedc01945c0de92f00687
      490ed632
    • atraczyk's avatar
      contrib: add UWP support for gmp, nettle, iconv, zlib · ddce842c
      atraczyk authored
      - adds fetch scripts for gmp, nettle, iconv, and zlib
      - adds fetch script all contribs
      
      Change-Id: If54204187c546b22a1a209747bce64f0fafac1fe
      Tuleap: #790
      ddce842c
  2. 10 Jan, 2017 6 commits
    • Adrien Béraud's avatar
      ringaccount: support device revocation · 6c66cf68
      Adrien Béraud authored
      Add support for Ring device revocation.
      Each device manages a local revocation list, synced with
      other devices linked with the account.
      When a device is revoked, its certificate is added to the
      local certificate revocation list (standard x509 CRL).
      CRL support from the trust store and OpenDHT is used.
      
      Tuleap: #1457
      Change-Id: I227e21afb3234e70ad562a5a4d0cf1084d61f174
      6c66cf68
    • atraczyk's avatar
      contrib: add UWP support for opendht · 751b86fa
      atraczyk authored
      Change-Id: Icfaf6afb1813619ce8119cc4bb1d224db55e9976
      Tuleap: #790
      751b86fa
    • Adrien Béraud's avatar
      trustrequests: adapt for multi-device · 84510ece
      Adrien Béraud authored
      Change-Id: I1ab520134eb09f6801e820b5ec87967b14056027
      84510ece
    • atraczyk's avatar
      uwp: use GetAppDataPath signal on UWP build · 5149e343
      atraczyk authored
      - uses a signal that is emitted when retrieving various folders
        used by Ring.
      
      - uses CreateFile2 in the writeTime function, in accordance with
        the Windows UWP API.
      
      Change-Id: Ie03255fd8d9d5bd298a17025a8110852ec573aa1
      Tuleap: #790
      5149e343
    • atraczyk's avatar
      build: remove reference to getenv for UWP · eaea2bd4
      atraczyk authored
      Change-Id: Ic39556204f2724e7b33d3055b58e184030a245aa
      Tuleap: #790
      eaea2bd4
    • atraczyk's avatar
      video: add video device implementation for UWP · a1b8b13a
      atraczyk authored
      - adds a video device implementation and a barebones video device
        montior implementation for UWP.
      
      Change-Id: I69108c688f0e55fea1776708919b881afae42552
      Tuleap: #790
      a1b8b13a
  3. 09 Jan, 2017 1 commit
  4. 06 Jan, 2017 2 commits
  5. 05 Jan, 2017 8 commits
  6. 04 Jan, 2017 1 commit
    • Simon Désaulniers's avatar
      ringaccount: introduce buddy presence on DHT · 55e892f1
      Simon Désaulniers authored
      This functionality of RingAccount exposes methods to "track" a buddy with it's
      ringid. The RingAccount keeps a map of BuddyInfo for all buddies to track. The
      BuddyInfo struct contains the last time the device has been seen online.
      RingAccount exposes the following methods:
      
      * ::trackBuddyPresence which will look for a buddy's DeviceAnnouncement on the
        DHT to deduce the buddy's presence. This will be done each 10 minutes
        (DeviceAnnouncement expiration time).
      * ::getTrackedBuddyPresence which returns the relevant content from the map of
        BuddyInfo, i.e. if each of the buddy is online or not.
      
      Change-Id: Ib149585c4835da88b0b0248b4a866770d35afe90
      55e892f1
  7. 02 Jan, 2017 6 commits
    • atraczyk's avatar
      contrib: add UWP support · 7b10c356
      atraczyk authored
      Change-Id: I648876cae97267cbc2eac2343f5fcde6970a487f
      Tuleap: #790
      7b10c356
    • Guillaume Roguez's avatar
      set default value to daemon version · 9767c702
      Guillaume Roguez authored
      Do not depends on build system to have valid
      definition of strings used for library version.
      Define defaults values in such case.
      
      Change-Id: I4512bb0815fe6a875bab96395bfcc83a344ef69e
      9767c702
    • atraczyk's avatar
      build: provide ssize_t definition for native Windows builds · 3ad6f8d8
      atraczyk authored
      - defines ssize_t in ice_socket.h and utf8_utils.cpp for
        Microsofts compiler.
      
      Change-Id: I46131f613a35cabae9df7749221ba2f30d7fd888
      Tuleap: #790
      3ad6f8d8
    • atraczyk's avatar
      build: use of gentenv is not permitted on UWP apps · 7f1d4f70
      atraczyk authored
      - Removes the usage of getenv for log levels on UWP apps, as
        the notion of environment variables doesn't exist for apps, and
        getenv is not included in the UWP API.
      
      Change-Id: Ifd1e981d9c3fafd64422251a38d991150e8a6fb8
      Tuleap: #790
      7f1d4f70
    • atraczyk's avatar
      build: add compiler_intrinsics.h to MSVC project · f53ef987
      atraczyk authored
      - adds compiler_intrinsics.h to MSVC project and replaces
        reference to WIN32_NATIVE with RING_UWP
      
      Change-Id: I4ab3c1e849488f75043e28ed56763a87c62757e5
      Tuleap: #790
      f53ef987
    • Alexandre Lision's avatar
      build: remove ant dependency · 3917b4f6
      Alexandre Lision authored
      Ant 1.9.7 is not needed anymore in our build process and since it is not
      distributed anymore by apache, instead of bumping to 1.9.8, remove it.
      
      Change-Id: Iac91d47aa74bbba5161d641b7f19564a517f89bf
      3917b4f6
  8. 29 Dec, 2016 1 commit
    • Adrien Béraud's avatar
      ip_utils: add getHostname() · c29ca026
      Adrien Béraud authored
      Add method to retreive the hostname,
      to fill the default device name.
      
      Change-Id: I5aafe8d0413caa13c4fdf720f6f3ce8b0577d238
      c29ca026
  9. 28 Dec, 2016 2 commits
    • atraczyk's avatar
      build: windows UWP API support · 070bc0e2
      atraczyk authored
      - system is not supported in the UWP API
      
      Change-Id: I884e998f499a8c19aa52db1d67df5b90ac890587
      Tuleap: #790
      070bc0e2
    • atraczyk's avatar
      ip_utils: replace #warning and define IN6_IS_ADDR_UNSPECIFIED · 77c14505
      atraczyk authored
      - Adds #pragma message to replace #warning directive
      
      - Defines _WIN32_WINNT to windows 10 (0x0A00) which allows
        IN6_IS_ADDR_UNSPECIFIED to be defined in ws2tcpip.h
      
      Change-Id: Id2406815830f24bbed744cbaca98dbd4fbcf515d
      Tuleap: #790
      77c14505
  10. 26 Dec, 2016 1 commit
    • atraczyk's avatar
      build: fix template specialization error on Windows native build · 56cd32d8
      atraczyk authored
      - prevents error C2910 which disallows explicit specialization of
        a member function outside the class if the function has already
        been explicitly specialized via a template class specialization.
      
      Tuleap: #790
      
      Change-Id: Idde2413707abf0ef65a3445ea1d577c0394c7121
      56cd32d8
  11. 15 Dec, 2016 3 commits
    • atraczyk's avatar
      build: use thread_local instead of __thread for UWP build · e0f5c89b
      atraczyk authored
      - Causes the UWP build condition to use thread_local when
        registering threads with pj_thread_register(), as __thread is
        not available. Note: __declspec(thread) is also equivalent.
      
      Change-Id: Ibee418d4c7084264acb0591015cdb8f72abc50ba
      Tuleap: #790
      e0f5c89b
    • atraczyk's avatar
      fix: replace WIN32_NATIVE flags with RING_UWP · c8740c4b
      atraczyk authored
      - replaces the WIN32_NATIVE flags from older patches with RING_UWP
      
      Change-Id: I7e49006189111c7d05f547dc783d34703ae80f40
      Tuleap: #790
      c8740c4b
    • atraczyk's avatar
      build: remove C99 designated initializers for Microsoft's compiler · f211d38d
      atraczyk authored
      - Microsoft's compiler doesn't support C99 designated initializers.
        Hopefully this we be added in the future, but for now we can
        comment the '.fieldname =' to achieve the same initialization,
        as long as all the elements are initialized in the fixed order
        that they were declared.
      
      Change-Id: I38af2eb66d583ef8f280ff8b4c7065c7d8229c02
      Tuleap: #790
      f211d38d
  12. 14 Dec, 2016 2 commits
  13. 13 Dec, 2016 4 commits