To prepare the file transfer this patch add public access
on the DhtRunner attribute and forEachDevice() API.
Change-Id: I111fa7cd3af56b765781fec4ca3ced20f18269d1
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
Use pimpl idiom to extract TlsSession implementation from definition.
Change-Id: I50f79dde8a89d6ec8db33cae2ef2004fc16d4457
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
TlsSession will be refactored to handle DTLS and TLS.
This patch cleanup TlsSession files to process further.
Change-Id: I76b6ac73d9fe46ee6a18c6c9d725f6fcadb465d9
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
* API additions:
- peerAddresses
- readlinefrom
- writelineto
* API changes:
- recvfrom: char*/length version
- sendto: per-peer call, not longer a map
* Add more API documentation
* Max TURN buffer size changed to 4096 bytes
* Better IO buffer management with peers
* Fix auth data (was temporary buffer pushing garbage values to server)
* Turn tests modified for API changes
Change-Id: I0bffe114301e8cb1e2f2e37d7a0eb5ba67f38c61
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
This patch fixes garbage characters at end of printSession output.
Change-Id: Icb5e0b739810ddc889d2699e691d7caaebe1e83c
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
Add a connection status to turn_session on_peer_connection()
to notify when a peer disconnect.
Stop the peer connection on client side when the peer close the socket.
TurnTransport class changed to considere this new API and
transmit the information to user and closing peer IO.
Change-Id: I4997af9864829270876b6e6faddfa55da8ba7eb7
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
This is a helper to detect cases where the connection cannot
be established due to absence of public addresses.
Change-Id: Ibfdc221624f5edc9e8e0b9bcebc35e2b5335770f
These methods are bugged with IPv4 address on little endian CPU.
Fix it by taking care of the endianness.
Change-Id: If4f0eb1dafc2c4dc6cde7d94ced7a8fec552cd80
These tarballs (probably produces by git archive --format=tar) are
'fairly' stable. This means that git tries to not change the output of
this format, but changes happen occasionally due to bugfixes.
It's still a good idea to freeze the hash because we really want to know
when the contents of such a tarball might have changed.
A lot of other projects depend on these also (i.e. homebrew, buildroot,
etc.)
All hashes were locally computed.
Change-Id: Ib0b3fccab70236bd2eb7bbb236e1306af7cc5f36
For gnutls, gcrypt, gpgerror and pcre this uses the canonical download
URL from their respective homepage.
For gmp we continue to use the GNU mirror but switch to https.
The tarball hashes are the same as before.
Not using ftp is also more friendly for people behind corporate
firewalls.
Change-Id: Iaf02a03549803a9374b1e35d8aa8234dd0895508
Let's use https instead of http wherever possible.
For speex/speexdsp this is essential because they where using neither
https nor checksums.
For other pages it avoids unnecessary redirects hen they eventually end
up on a https url anyway.`
Change-Id: Ic07d74480b5a3f5adcf4db17b1bacd51b6aa4439
This function hides the location where the error occurred, the daemon's
logs always pointed to print_averror with a failure of av_write_frame.
Change-Id: I25b703fc44969cc6726f11ed09ed67cc3edb6696
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Remove the second loop in the getFormatCb function. Ring will no longer
check the pixel formats twice in case hardware decoding isn't possible.
Change-Id: Ib03deb152394948979249828376bc4280b859424
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
* Use base36 [0-9A-Z] instead of base16 (hex)
for PIN generation.
This increase the number of combinations from
2^32 to ~2^41.36, an increase of ~9.36 bits.
This increase should offset the entropy loss
due to the optional password.
* Use random_device directly instead of the
account (seeded) pseudo-generator because the PIN
should have cryptographic-level randomness.
Change-Id: I00169f5d08f6794329a9e9e22b7173a0a6ef9ef4
Use random_device from OpenDHT to
profit of the fallback on MinGW.
Change-Id: I00d0221d30c298f4342950a404fc2980e702e10b
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
- Replaces the TARGET_OS_IOS(seems not used) with macros defined
in TargetConditionals.h to correctly determine platform target.
- This only replaces the macro in urlhook.cpp preventing the use
of the system function, which is critical to the iOS build.
Change-Id: I4ba40aefe212bf1279a4813d1cdc2d14ddbd4273
Reviewed-by: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
Bump msgpack to latest stable version 2.1.5
Relevent fixes for Ring:
* fix unpack visitor to treat float32/64 correctly
* fix alignment problem on some platform (includes arm)
Change-Id: I3c3300c02e91435b0e72ae48e2614efad3e3b936
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
* add patch to prevent the build of pcre executables and tests
* update pcre from 8.40 to 8.41
Change-Id: I0cd008e59c905ab44a02c11808a8cf9233063817
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
Hardware decoding for 32 bit platforms was fixed by FFmpeg commit
dd8ffb191fd24f5b783b9722f63019120d61c48c, which in included in the
latest bump.
Change-Id: I1ec4a91ae85902d225938921dee8eaf236f7ef9e
* fix transaction ID reuse bug
* fix minor issues
* minor performance improvements
Change-Id: I7bc0bfa6d3b0f48a0cec9ab4554d265e415c8a68
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
A non exhautive list of what this bump brings:
- Direct 3D 11 hardware decoding (UWP)
- Uniform API for vaapi, vdpau, videotoolbox, dxva2 and d3d11va
- 32 bit MediaCodec fix (Android hardware decoding)
- Non X screen capture on Linux (Wayland support)
- Better VP9 support
- Various bug fixes and optimizations
Due to problems with the VideoToolbox acceleration, the bump for MacOS
is postponed.
Change-Id: Id05a1d789c90ea1321f10e801a036c47b6f76d88
Rewrite of RingAccount::updateArchive() to prevents
insertion of empty file contents in case of non-existing files.
This may cause later empty-object creation with misleading usage.
Also exposes filtered and base64 decoded keys to easier code
readability and maintainance.
Change-Id: Id2d504ad73caaaad519be0344c3fb424ada35c20
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Account archive is meant to be device-independent,
so don't export device-specific configuration to it.
Change-Id: Iebc3fba81a445f0c28da3ca4f9086a72a436e173
After removing the boost dependency, the Ring UWP was unable to load
accounts with upnp enabled, as a deadlock would occur within the
threadpool initialization rountine of libupnp. I think the windows store
build of pthreads was preventing win32 thread management api symbols
from being defined. Something which loading boost must have been doing.
- Bumps pthreads-win32 from 2.9.1-release to 2.10.0-rc
- Builds a win32 static lib without windows store flags and uwp libs
- Modifies the libupnp and threadutils vs project patching
Change-Id: I3f43a066d86d284c614521fdb016810148590e70
Enable an usefull option to make easier documentation writting.
Change-Id: I7d0ea254a913dab09548f17167d432d75de901e4
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
The --disable-[accel name] switches of the configure script are a
nightmare to maintain. They break with every bump of FFmpeg, and don't
work right half the time.
Keep only global switch --disable-accel.
Change-Id: I6b645f7102abb3903c27d7dac7d70f7f15a5e728
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
Ignoring generated files from gnu global tool.
Change-Id: I8a94a8eead33a512cb65c692d01dc1e2610338fa
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
TurnTransport class is a C++ wrapper on PJNATH turn socket API.
Bring an easy to use socket connected to a TURN server.
Support TCP (even with peer) and UDP connection types.
Requires rfc6062 support into pjproject 2.6, given by patch:
88c820ee60 / contrib: implement rfc6062 in pjnath
Include fonctional tests working with turn.ring.cx.
Run tests as usual with "make check" command.
Change-Id: Idf14c2ea192cab2fccf99b142492086284920a6b
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
Don't define _FILE_OFFSET_BITS=64 on 32 bit android: this is no longer a
no-op starting with NDK 15.
Log2f patch no longer required.
Change-Id: I3d42ee9507e151becc2e39a5e97fa9a0fd011261
Prevents cmake from trying to use the system toolchain on macOS.
Change-Id: Ia4890ce07e10395832fb3c9ecbab8cea8e637826
Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
* Prevent symbols export (was the cause of wring libring.dll.a)
* Do not build tests binaries (waste of build time)
Change-Id: Ic823790f0371ae6320f8d6a4d5e9a925938b4f8d
Move build requirements from C++11 to C++14, for contrib and core.
[GR: ci msg + contrib support + m4 update]
Change-Id: I22793ba1ca06ea7c45d237c882a92d20a008f76f
Reviewed-by: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Signed-off-by: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Update "eth" to latest version from
https://github.com/ethereum/cpp-ethereum
This new version makes use of secp256k1 instead of custom
code and cryptopp to handle EC generation, and reduces its dependency
to boost to use more of the C++11 STL.
This allows to trim the code to completely remove the boost and
cryptopp dependencies.
Change-Id: I19118d3b833a9425cddbeabf6d0b6e07d5a4b15e
* prevent copy-initialisation with integer values
(maybe not what we want to do)
* remove by-pointer ctor API
(we don't need nullptr case)
* fix constness misuse on sockaddr conversion methods
* fix constness of bool conversion
(for cases where the IpAddr instance is not const)
* fix IpAddr rich-comparators (add <=, >=, <, >)
(fix usage of IpAddr as key in a map, where
the comparator is std::less, operator== was not used)
Change-Id: Iba9cf641d68bda37bd32d85dbd9dfffdc99078ed
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
New dependency for eth sources
Change-Id: I5e03d42ce4a59267212cf175952e615412b1cf26
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Fixes a bug introduced in "osxvideo: use avfoundation indev" where the
video device didn't have the right name.
Change-Id: Ib2b31191925e89b6478a61812667ed5f86acc5d2
Reviewed-by: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
- Commit e57038fe...(ringaccount: sets the ringId/username for disabled
accounts also) caused the deviceId to be loaded into ringAccountId_
for disabled accounts. This patch load devices, contacts, and trust
requests for disabled accounts while exiting from loadAccount as early
as possible.
Change-Id: If45ab84ac301faa5776d6af5436e672195c51501
A first try to implement the RFC 6062 into PJNATH.
More explanations into the rfc6062.patch itself.
Note: not ready to be pushed up-stream to pjproject.
Change-Id: I445f0c8a8db03c9a4a5b04d24ef63ff4f711a725
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>